What is the correct way to leave gunicorn running?

前端 未结 9 2013
南方客
南方客 2020-12-23 13:48

I want to make a Flask+Nginx+Gunicorn deployment. I have Nginx setup and running and I run gunicorn as described in the docs:

gunicorn app:app
9条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 14:19

    Pay attention to Sean.

    However you can run it on the fly like this:

    nohup gunicorn -c config.py /dev/null 2>&1 and it will no longer be dependent on the terminal connection. You could replace >/dev/null with something like >somelogfile if you want to save any output.

    But for production use it is best to get it integrated into whatever tool you use for managing processes.

提交回复
热议问题