capistrano-plugins / capistrano-unicorn-nginx

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

nginx.conf is not generated on 'cap production setup' #99

Open norenma opened 7 years ago

norenma commented 7 years ago

I have accidentally removed the nginx.conf file on my server, and when I run "sudo bundle exec cap production setup" no new file is created. The etc/nginx folder is owned by root but the commands in 'sudo bundle exec cap production setup' runs with sudo, and I have a gem to enter my sudo password.

Is there a way to make sure that the file is being created?

Thanks in advance, Markus

wynksaiddestroy commented 7 years ago

I'm afraid the capistrano-unicorn-nginx gem only creates the respective site configurations in /etc/nginx/sites-available rather than the actual nginx.conf file. You should try to reinstall the nginx package with the package manager of your OS.