capistrano-plugins / capistrano-unicorn-nginx

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

Replace nginx configuration automatically? #38

Closed firewalker06 closed 9 years ago

firewalker06 commented 9 years ago

Right now every time I have some changes in nginx configuration, I need to delete my /etc/nginx/sites-available/my-website from each server before running cap production nginx:setup. Is there easier way to do this?

rhomeister commented 9 years ago

Hi Didik,

The cap setup task should overwrite your nginx and unicorn config files. There should he no need to delete anything (manually). Could you provide some more information as to whether you think you need to delete your deploy directory?

On Wed, Dec 3, 2014, 23:07 Didik Wicaksono notifications@github.com wrote:

Right now every time I have some changes in nginx configuration, I need to delete my /etc/nginx/sites-available/my-website from each server before running cap production nginx:setup. Is there easier way to do this?

— Reply to this email directly or view it on GitHub https://github.com/capistrano-plugins/capistrano-unicorn-nginx/issues/38 .

firewalker06 commented 9 years ago

Aha, I missed this commit: https://github.com/capistrano-plugins/capistrano-unicorn-nginx/commit/48ade4a9b37e629952c3c4028a326bd5ea64a073

Thanks! I just update my gemfile :)

rhomeister commented 9 years ago

Happy that solved your problem!