What is the correct way to leave gunicorn running?

前端 未结 9 2007
南方客
南方客 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条回答
  •  -上瘾入骨i
    2020-12-23 14:33

    Use --daemon option while running gunicorn. Example:

    gunicorn grand56.wsgi:application --name grand56 --workers 3 --user=root --group=root --bind=127.0.0.1:1001 --daemon

提交回复
热议问题