effkay / blazing

painless git push deployments for everyone
MIT License
80 stars 12 forks source link

Run remote commands in a login shell #59

Closed youngbrioche closed 12 years ago

youngbrioche commented 12 years ago

In order to run remote RVM-dependent commands via SSH one needs to do that via a login shell so that the rvm script gets sourced.

One way to do this would be to offer a config option for Blazing::Shell to prefix commands with bash -l -c.

I can issue a pull request for that feature, just tell me what you think about that.

effkay commented 12 years ago

Hi @mrreynolds

What remote commands are you talking about exactly? All the things called from the post-receive hook? Could you elaborate on your idea?

effkay commented 12 years ago

hi @mrreynolds, any more input on this?