-
Notifications
You must be signed in to change notification settings - Fork 258
Open
Description
Hello,
When running the snappass script, I get the following warning on the console:
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
From a very brief skim of the Flask docs, production use is recommended to use something like Waitress as the actual HTTP server rather than the one bundled with Flask, which seems to work if I add the following function to main.py:
def get_app():
return app...and then run Waitress with the following command:
waitress-serve --call snappass:main.get_app
Is there a way to host snappass behind a "production recommended" HTTP server without modifications? Is there a reason to stick with the built-in Flask server instead?
Thanks
EDIT: You can use waitress with modifying main.py with the following command:
waitress-serve --call snappass.main:app
ego93 and yongzhang
Metadata
Metadata
Assignees
Labels
No labels