What is the correct way to leave gunicorn running?

前端 未结 9 1892
南方客
南方客 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:26

    Running hug api like this.

    --daemon is to keep the process in background.

    --access-logfile to keep request log

    --bind=< ip>:< port> Giving IP will allow to access from other systems(If proxy is not needed).

    gunicorn :__hug_wsgi__ --name  caassist -w 4 --access-logfile /var/logs/gunicorn/gunicorn_access.log --daemon --bind=:
    

提交回复
热议问题