capistrano-plugins / capistrano-unicorn-nginx

Capistrano tasks for automatic and sensible unicorn + nginx configuration
MIT License
175 stars 81 forks source link

nginx reload not working (stuck after entering sudo password) #43

Closed navjeetc closed 9 years ago

navjeetc commented 9 years ago

I am running "cap staging nginx:reload" cap task and it prompts me to enter sudo password, but nothing happens after I type password. It's just stuck there. I am using capistrano-unicorn-nginx plugin v 3.1.2

bruno- commented 9 years ago

Hey, I think the issue might be with capistrano running without pty. The solution is likely in enabling passwordless sudo for your deployer user (at least this is what I have always enabled and do all the testing etc).

Capistrano docs recommend doing that for scripts outside the core capistrano read here.

Let us know if that solved it?

navjeetc commented 9 years ago

Enabling passwordless sudo for deployer user fixed the issue. Thanks.