Restarting nginx with Capistrano results in 502 Bad Gateway

Posted by blee on Server Fault See other posts from Server Fault or by blee
Published on 2010-06-10T18:02:09Z Indexed on 2010/06/10 18:13 UTC
Read the original article Hit count: 503

Filed under:
|

Here's what cap deploy does:

sudo -p 'sudo password: ' -u root /var/rails_apps/fooapp/current/script/process/reaper

reaper simply contains /etc/init.d/nginx restart

When I run the same command from the shell, I do not get a 502--everything is fine. The nginx error.log is empty. Any thoughts on how to troubleshoot? Thanks in advance for your thoughts.

© Server Fault or respective owner

Related posts about nginx

Related posts about capistrano