LoginSignup
0
0

More than 5 years have passed since last update.

gunicornで管理しているアプリをリロードする方法

Last updated at Posted at 2018-03-09

起動

$ gunicorn app:app -p /tmp/gunicorn.pid 

リロード

$ kill -HUP `cat /tmp/gunicorn.pid`

解説

起動処理で masterpid を出力し、それを kill -HUP に渡すとwokerプロセスがリロードされる

0
0
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
0
0