rvmsudo foreman export upstart without asking for password
Posted
by
Millisami
on Server Fault
See other posts from Server Fault
or by Millisami
Published on 2011-10-19T18:47:54Z
Indexed on
2012/10/24
5:11 UTC
Read the original article
Hit count: 547
upstart
|capistrano
My capistrano deploy.rb
has a foreman export command for a rails app on Ubuntu 10.04
So, while deploying, I want to export the foreman to upstart script.
But doing that, the command rvmsudo foreman export ...
asks for root password and I cannot do anything.
Googled a lot and tried with various tweaks but nothing worked.
* executing `foreman:export'
* executing "cd /home/deploy/zappy/releases/20111019175422 && rvmsudo foreman export upstart /etc/init -a zappy -u deploy -f ./Procfile.production -c worker=1 redis=1 -l /home/deploy/zappy/releases/20111019175422/log/foreman"
servers: ["173.255.205.237"]
[173.255.205.237] executing command
** [out :: 173.255.205.237] [sudo] password for deploy:
What could be the solution to do it password-less way?
© Server Fault or respective owner