I’m trying to use the Ruby on Rails with Ubuntu image. It has an init script to manage the Unicorn process, but it doesn’t do zero-downtime deploy.
I’m not familiar enough with init scripts, so I can’t do this myself.
Here is a different flavour of init script that knows how to do this : https://github.com/ValencePM/capistrano-unicorn-init
Here is the official documentation for this feature of Unicorn : http://unicorn.bogomips.org/SIGNALS.html (check the “Procedure to replace a running unicorn executable” paragraph)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.