generated at
gunicorn の起動オプション
gunicorn の起動オプション
shell
$ gunicorn \ --workers 2 \ # 起動するworker数 --bind 127.0.0.1:8000 \ --access-logfile - \ # gunicorn自体にアクセスログを出力させたい場合 --capture-output \ # Pythonからのログ出力をstdout/stderrにしている場合、必要 --log-level debug \ # gunicorn自体のデバッグログを出力させたい場合 --max-requests 100 \ # workerが100回リクエストを処理したらそのworkerを再起動する apps.wsgi # Djangoのwsgiモジュールパス

--capture-output オプションは gunicorn 19.6 で追加
--error-logfile オプションは gunicorn 19.2 以降デフォルトで - が設定される