You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, not a bug report, just wondering how to best do things.
I am deploying a rails app running on puma behind nginx.
So far I have a task for linking the app's nginx.conf into sites-enabled like so:
desc "Takes care of nginx conf"
task :nginx_link => :environment do
queue! %[ln -nfs /home/deployer/apps/#{app_name}/current/config/deploy/nginx.conf /etc/nginx/sites-enabled/#{app_name}]
queue! %[ln -nfs /home/deployer/apps/#{app_name}/current/config/deploy/nginx.conf /etc/nginx/sites-available/#{app_name}]
#queue! %[sudo nginx -s reload]
end
My problem is that the nginx configuration does not seem to reload to take the latest changes into account so I need to run sudo nginx -s reload which requires me to enter the sudo password.
Hi, not a bug report, just wondering how to best do things.
I am deploying a rails app running on puma behind nginx.
So far I have a task for linking the app's nginx.conf into sites-enabled like so:
My problem is that the nginx configuration does not seem to reload to take the latest changes into account so I need to run
sudo nginx -s reload
which requires me to enter the sudo password.I am looking into setting up this command for the deployer user to run without password following http://askubuntu.com/questions/73864/how-to-modify-a-invalid-etc-sudoers-file-it-throws-out-an-error-and-not-allowi
Am I on the right track or perhaps there is a way to pass sudo password to mina in deploy.rb and have it pass automagically?
Thanks!
The text was updated successfully, but these errors were encountered: