【发布时间】:2012-02-29 11:21:19
【问题描述】:
我对这里的部署策略有点困惑,在什么情况下部署时我想向独角兽发送reload 信号?例如,在我的情况下,它会是:
sudo kill -s USR2 `cat /home/deploy/apps/my_app/current/tmp/pids/unicorn.pid`
我一直在通过杀死该 pid 来部署我的应用程序,然后通过以下方式再次启动 unicorn:
bundle exec unicorn -c config/unicorn/production.rb -E production -D
我只是想知道为什么我要使用重新加载?这样做可以让我的部署获得任何性能吗?
【问题讨论】: