gunicorn autoreload on source change

前端 未结 4 1866
太阳男子
太阳男子 2020-11-28 06:00

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 serv

4条回答
  •  -上瘾入骨i
    2020-11-28 06:08

    One option would be to use the --max-requests to limit each spawned process to serving only one request by adding --max-requests 1 to the startup options. Every newly spawned process should see your code changes and in a development environment the extra startup time per request should be negligible.

提交回复
热议问题