capistrano / rbenv

Idiomatic rbenv support for Capistrano 3.x
MIT License
203 stars 60 forks source link

How could I open up the console on the production server? #71

Closed gregblass closed 7 years ago

gregblass commented 7 years ago

I'm using capistrano/rbenv to deploy/manage rubies on my production server. If I wanted to login to the server and run a rake command or open up a console, how would I got about doing that?

will-in-wi commented 7 years ago

It depends on how you have rbenv set up on your server. Generally, you would need to add the shell profile stuff to your shell on the server al la https://github.com/rbenv/rbenv#basic-github-checkout and then open an ssh session.

Regardless, unless I'm misunderstanding your question, Capistrano does not open interactive shells, so this isn't a question for this ticket queue. I'd encourage you to ask on Stack Overflow; we point people there for support style questions, as more people are watching and the answers are more generally useful to others.

gregblass commented 7 years ago

That answers my question exactly. Thank you!

gregblass commented 7 years ago

In the end I just wrote a rake task to do what I wanted to do and used capistrano to execute the rake task.