Switched to waitress as production server
This commit is contained in:
parent
72f56f9929
commit
7062e14396
@ -62,6 +62,7 @@ def create_app(config_name="default"):
|
|||||||
|
|
||||||
# Server start only if we run app directly
|
# Server start only if we run app directly
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
from waitress import serve
|
||||||
app = create_app()
|
app = create_app()
|
||||||
port = os.getenv("TODOLIST_PORT", "80")
|
port = os.getenv("TODOLIST_PORT", "80")
|
||||||
app.run(host="0.0.0.0", port=port)
|
serve(app, host="0.0.0.0", port=port)
|
||||||
|
@ -11,4 +11,5 @@ mysql-connector-python==9.2.0
|
|||||||
python-dotenv==1.0.0
|
python-dotenv==1.0.0
|
||||||
SQLAlchemy==2.0.23
|
SQLAlchemy==2.0.23
|
||||||
typing_extensions==4.8.0
|
typing_extensions==4.8.0
|
||||||
|
waitress==3.0.2
|
||||||
Werkzeug==3.0.1
|
Werkzeug==3.0.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user