Tasks: add task to connect to remote console on prod

This commit is contained in:
Simon Lehericey 2017-10-09 18:17:40 +02:00
parent 93b6f72161
commit 93644924fa

View file

@ -83,4 +83,8 @@ EOF
Rake::Task["db:migrate"].invoke
Rake::Task["db:environment:set"].invoke("RAILS_ENV=development")
end
task :console do
exec("ssh tps@sgmap_production1 -t 'source /etc/profile && cd current && bundle exec rails c production'")
end
end