From 93644924fae0ef7bd489a5d27a46143d416eb4e5 Mon Sep 17 00:00:00 2001 From: Simon Lehericey Date: Mon, 9 Oct 2017 18:17:40 +0200 Subject: [PATCH] Tasks: add task to connect to remote console on prod --- lib/tasks/dev.rake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index d0760a9b9..bdd2de37e 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -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