I am trying to configure capistrano to quickly deploy my rails3 application. I am new to rails.
Everything works as it should, except that I am trying to restart the stand-alone passenger server.
I run redmine on the same server, so I ran http://blog.phusion.nl/2010/09/21/phusion-passenger-running-multiple-ruby-versions/ to run several versions of ruby / rails. This works fine until I try to get capistrano to restart the passenger server.
The problem is that 'sudo' does not pass the environment settings through (as found on: sudo changes PATH - why? )
Everything works if I can use 'rvmsudo' instead of 'sudo' since rvmsudo conveys the correct environment information. But, if I use "rvmsudo" in my Captistrano deployment, it hangs waiting for my sudo password.
I would like to implement try_rvmsudo, which works exactly the same as try_sudo, where it sends the password if asked. but I can not find any information about this.
here is the restart command I'm trying to use:
desc "Restart Passenger server" task :restart, :roles => :app, :except => { :no_release => true } do run <<-CMD if [[ -f
And it freezes, saying:
** [out :: snapshotroulette.com] [sudo] password for deployer:
source share