Tasks: add task to connect to remote console on prod
This commit is contained in:
parent
93b6f72161
commit
93644924fa
1 changed files with 4 additions and 0 deletions
|
@ -83,4 +83,8 @@ EOF
|
||||||
Rake::Task["db:migrate"].invoke
|
Rake::Task["db:migrate"].invoke
|
||||||
Rake::Task["db:environment:set"].invoke("RAILS_ENV=development")
|
Rake::Task["db:environment:set"].invoke("RAILS_ENV=development")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :console do
|
||||||
|
exec("ssh tps@sgmap_production1 -t 'source /etc/profile && cd current && bundle exec rails c production'")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue