Capistrano does not work with rvmsudo
in my deploy.rb.
I tried
set :sudo, 'rvmsudo'
set :sudo_prompt, 'password: '
And then running commands with:
sudo "god -c config/unicorn.god --log-level debug"
But Capistrano gets stuck on the password prompt.
This solution here says to use sudo "whoami"
and then rvmsudo
because it will remember your password for 5 minutes, but my password is not remembered.
context:
desc "Start unicorn"
task :start, :except => { :no_release => true } do
sudo "god -c config/unicorn.god --log-level debug"
end