I want to know, how to restart my gunicorn server automatically. after my django project code has been changed. currently now i am doing manual restart after i made changes , just kill the process and reload it. but it is not a good way. so i want to know how to do the same automatically after code getting changed . i am using nginx too.
Take a look at the reload setting:
https://docs.gunicorn.org/en/stable/settings.html#debugging
reload
--reload False Restart workers when code changes.
This setting is intended for development. It will cause workers to be restarted whenever application code changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With