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.
This commit is contained in:
gregoirenovel 2018-09-23 13:13:40 +02:00
parent a5aac76140
commit 8fa3602bfc

View file

@ -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