Trying to get deploying on Capistrano 3. I'm using NGINX, RVM, Passenger, Rails 4. My deploys are working, but I need to restart NGINX manually - here is the error at the end of the deploy:
DEBUG [c4e821bc] Command: ~/.rvm/bin/rvm default do passenger -v
DEBUG [c4e821bc] Phusion Passenger version 5.0.6
DEBUG [c4e821bc]
DEBUG [c4e821bc] "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
DEBUG [c4e821bc] Finished in 0.981 seconds with exit status 0 (successful).
INFO [5082ae94] Running ~/.rvm/bin/rvm default do passenger-config restart-app /home/deploy/skilltry --ignore-app-not-running on 104.237.158.232
DEBUG [5082ae94] Command: ~/.rvm/bin/rvm default do passenger-config restart-app /home/deploy/skilltry --ignore-app-not-running
DEBUG [5082ae94] *** ERROR: You are not authorized to query the status for this Phusion Passenger instance. Please try again with 'rvmsudo'.
cap aborted!
I've tried a fix over here: https://github.com/capistrano/passenger/issues/2
Use visudo to edit the file (so if you mess up you have the chance to re-edit the file), at the end of the file (*) add the following:
deployuser ALL=(root) NOPASSWD: /usr/bin/passenger-config
This made no difference
And over here: How can I get passenger-config restart-app to work?
But I get a prompt which I cannot enter:
[sudo] password for deploy: