Unicorn Rails Application Deployment Considerations (Using Upstart)

I have a dedicated server that runs about 10 Rails applications using Nginx, Unicorn and Ruby 1.9.2, etc. I also use capistrano for deployment.

What I need are tips on best practices for starting and deploying these applications.

Each application has its own home directory and user account. However, at the moment I have a setting in the sudoers file so that they can restart the application after deployment (I have capistrano configured to run restart.sh script). This means that I must enter the user password during deployment (capistrano asks me when I try to start restart.sh).

Is it possible to configure configuration daemons to run without sudo permissions?

Is there a better way to do this?

Cheers, James

+4
source share
1 answer

You can simply run ROR applications as the user who runs the Capistrano script deployment, and have that user (or have permission to run) the restart.sh file.

0
source

Source: https://habr.com/ru/post/1345985/


All Articles