passenger-config restart-app with capistrano
I’m sure not only me having this issue after update capistrano with passenger v.5
Basically problem it looking like that:
INFO [c55a19d7] Running /usr/local/rvm/bin/rvm default do passenger-config restart-app /home/model/staging --ignore-app-not-running as email@example.com DEBUG [c55a19d7] Command: /usr/local/rvm/bin/rvm default do passenger-config restart-app /home/model/staging --ignore-app-not-running DEBUG [c55a19d7] *** ERROR: You are not authorized to query the status for this Phusion Passenger instance. Please try again with 'rvmsudo'.
This case is working for rvm system wide
set :rvm_map_bins, fetch(:rvm_map_bins, ).push('rvmsudo') set :passenger_restart_command, 'rvmsudo passenger-config restart-app'
And to not prompt the user password with sudo, just create file /etc/sudoers.d/
deployer_username with content:
deployer_username ALL=(ALL) NOPASSWD:ALL