Search code examples
pythondjangoreloadgunicorn

gunicorn autoreload on source change


Finally I migrated my development env from runserver to gunicorn/nginx.

It'd be convenient to replicate the autoreload feature of runserver to gunicorn, so the server automatically restarts when source changes. Otherwise I have to restart the server manually with kill -HUP.

Any way to avoid the manual restart?


Solution

  • While this is old question you need to know that ever since version 19.0 gunicorn has had the --reload option. So now no third party tools are needed.