Interactive Rails console session using Capistrano 3

24 views
Skip to first unread message

Attila Györffy

unread,
Jul 20, 2016, 4:29:02 PM7/20/16
to Capistrano
Hi all,

First of all thank you for Capistrano 3, it's been working flawlessly for a while. I have seen that it's designed to do non-interactive deployments but have also seen some people hacking their way around interactive tasks, such as bringing up a rails console on a given stage. What I've seen so far is people manually executing SSH sessions using execute on certain stages (which don't really make sense to me anymore as Cap 3 is being executed on the stage itself).

So instead of writing something that may or may not work, I instead want to learn how this would work in the context of Capistrano 3.

I suppose I'll need to use the https://github.com/capistrano/rails repository as a base to fetch rails environments, ensure bundle exec is used when executing commands, etc.

Would this be a simple execution of the rails bundler binstubs? running ./bin/rails console with the right environment variables? Is that going to work in interactive mode?

Thanks in advance,

-- Attila
Reply all
Reply to author
Forward
0 new messages