39
35

More than 5 years have passed since last update.

unicorn再起動

Last updated at Posted at 2014-10-26

unicornの設定ファイルを書き換えたので、再起動。
capistrano3-unicornのlegacy_restartrestartではうまくいかなくて(設定もあるかもしれない)、
USR2とかがつく、いわゆる緩やかな再起動では設定ファイルを再読み込みしてくれないらしいので、
がっつり止めて、起動する。

停止

kill -QUIT `cat /tmp/unicorn.pid` # cat先はunicorn設定で決めているところ

起動

bundle exec unicorn_rails -c /home/vagrant/current/config/unicorn.rb -E development -D
# unicorn.rbのパスは適宜

※developmentのところ、RAILS_ENVが入ると思ってました。
違いました。development or none だそうです ⇒ Rack or Unicorn の E 引数

39
35
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
39
35