Debugging a Flask app running in Gunicorn

后端 未结 6 834
遇见更好的自我
遇见更好的自我 2020-11-29 17:31

I\'ve been working on a new dev platform using nginx/gunicorn and Flask for my application.

Ops-wise, everything works fine - the issue I\'m having is with debugging

6条回答
  •  情深已故
    2020-11-29 17:53

    Try setting the debug flag on the run command like so

    gunicorn -c gunicorn.conf.py --debug testserver:app
    

    and keep the DEBUG = True in your Flask application. There must be a reason why your debug option is not being applied from the config file but for now the above note should get you going.

提交回复
热议问题