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
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:
defget_app():
returnapp
...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
The text was updated successfully, but these errors were encountered:
Hello,
When running the
snappass
script, I get the following warning on the console: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
:...and then run Waitress with the following command:
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:The text was updated successfully, but these errors were encountered: