You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now it runs python3 -m flask run. This is incorrect. Flask warns about this in their docs:
Do not use the development server when deploying to production. It is intended for use only during local development. It is not designed to be particularly secure, stable, or efficient.
When you look at the fly logs, it also emits a warning:
This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
The generated Dockerfile for flask should have a different CMD.
Right now it runs python3 -m flask run. This is incorrect. Flask warns about this in their docs:
When you look at the fly logs, it also emits a warning:
I’d propose the following changes:
This will do the following:
requirements.txt
Alternatively, you could look for gunicorn in requirements.txt and add if it’s missing.
The text was updated successfully, but these errors were encountered: