gunicorn/doc/site/faq.rst
2010-02-20 14:47:25 -05:00

26 lines
581 B
ReStructuredText

template: doc.html
title: FAQ
FAQ
===
How do I reload my application in Gunicorn?
You can gracefully reload by sending HUP signal to gunicorn::
$ kill -HUP masterpid
How do I increase or decrease the number of running workers dynamically?
To increase the worker count by one::
$ kill -TTIN $masterpid
To decrease the worker count by one::
$ kill -TTOUT $masterpid
How do I set SCRIPT_NAME?
By default ``SCRIPT_NAME`` is an empy string. The value could be set by
setting ``SCRIPT_NAME`` in the environment or as an HTTP header.