Answer the question
In order to leave comments, you need to log in
Unicorn Monitoring
Hello, I have a server deployed on which Rails projects are being developed, I chose the Nginx + Unicorn bundle as the server. Run Unicorn under the project I do from the command line. When I need to restart the service, I grab the current processes and kill Unicorn, then start it again. If I restart the server, then for each project I need to start the unicorn again! Tell me what are the tools for organizing a convenient start / stop / restart of Unicorn and how to add a launch of your Unicorn for each project after starting or rebooting all machines?
Answer the question
In order to leave comments, you need to log in
There is also Ruby-way . Examples of configs for Unicorn can be searched on githab .
Ready-made init scripts have been posted for a long time, for example
gist.github.com/750379
and
gist.github.com/504875
habrauser
I prefer the simpler daemontools which works out of the box with no configuration required.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question