Skip to content

Does it make sense to get rid of "Use a production WSGI server instead" ? #39

Open
@ieugen

Description

@ieugen

Hi,

While running the docker version of the app I got:

 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.

Googleing that (not a python dev) I got to the bellow solution - to use waitress - a production ready wsgi server.
I think others exist as well.

if __name__ == "__main__":
    from waitress import serve
    serve(app, host="0.0.0.0", port=8080)

https://stackoverflow.com/questions/51025893/flask-at-first-run-do-not-use-the-development-server-in-a-production-environmen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions