From 8fa3602bfc7eb4749dd4de6cf11f9fcf7785a5a0 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Sun, 23 Sep 2018 13:13:40 +0200 Subject: [PATCH] Remove a warning in the console task Passing the environment's name as a regular argument is deprecated and will be removed in the next Rails version. Please, use the -e option instead. --- lib/tasks/dev.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index ad0ff0d5a..224ddf5b6 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -27,6 +27,6 @@ namespace :dev do end task :console do - exec("ssh tps@sgmap_production1 -t 'source /etc/profile && cd current && bundle exec rails c production'") + exec("ssh tps@sgmap_production1 -t 'source /etc/profile && cd current && bundle exec rails c -e production'") end end