I do not want to use sudo for any of my remote commands using Capistrano. In particular, when I run cap deploy:setup , they ask me for my sudo password during the first mkdir command. I added set :use_sudo, false to the deploy.rb file, but that didn't help.
I started with a fairly complete deploy.rb file, but reduced it as soon as I had problems. Here is my minimal version that still does not comply with use_sudo :
# App Definitions set :domain, '[server-ip]' role :app, domain role :web, domain role :db, domain, :primary => true set :user, "my_app" set :use_sudo, false task :sudo_test do run "#{try_sudo} whoami" end
running cap sudo_test causes me to be prompted for a sudo password. What am I missing here (except for the hair that I have already pulled out)?
Google Results
https://groups.google.com/forum/?fromgroups#!topic/capistrano/QNYnvW8obrg
Feed with someone having a similar problem. No conclusion / resolution noted in the stream.
YWCA Hello
source share