Debugging a Flask app running in Gunicorn

后端 未结 6 842
遇见更好的自我
遇见更好的自我 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 18:08

    For Heroku users, there is a simpler solution than creating a bin/web script like suggested by Nick.

    Instead of foreman start, just use foreman run python app.py if you want to debug your application in development.

提交回复
热议问题