Can you reload a Rails app on Passenger in the same seamless way as you can reload one on Unicorn?
-
29-10-2019 - |
题
With Unicorn, you can restart and reload a Rails app with kill -USR2 [master process]
, which doesn't kill the process immediately, but starts a new master process + slave processes in the background. When the new master is ready, you can shut off the old master with kill -QUIT
. This lets you restart your website without having any visitors notice a slowdown in request handling.
But with Passenger, you restart the Rails app with touch tmp/restart.txt
, which as far as I can tell, causes the Rails app to become unresponsive for the few seconds it takes to restart the Rails application.
Is there a way to use Passenger, but also have the Rails app restart seamlessly?
没有正确的解决方案
不隶属于 StackOverflow