Hello,

I am running nginx in production. I have the following task.

  [:stop, :start, :restart, :reload].each do |action|
    desc "#{action.to_s} nginx server"
    task action, :roles => :web do
      run "#{sudo} /etc/init.d/nginx #{action.to_s}"
    end
  end

When ever the restart task runs cap just stops.

  * executing `deploy:restart'
  * executing "sudo -p 'sudo password: ' /etc/init.d/nginx restart"
    servers: ["app.net"]
    [app.net] executing command
 ** [out :: app.net] Restarting nginx daemon: nginx
 ** [out :: app.net] .

Cap will just sit there till I Ctrl-C the task. The command works on
the server and seems to be working when executed by cap however like a
bad relationship cap does not seem to "move on" to the next task :)

~/code/rails/app (deployment)$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0]

~/code/rails/app (deployment)$ cap --version
Capistrano v2.5.19

Thanks in advance for any help.

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to