Changed default port to 80 and added possibility of setup app port using TODOLIST_PORT variable

This commit is contained in:
Marcin-Ramotowski 2025-04-10 20:38:22 +00:00
parent 4e6788f614
commit 084e3868f9

View File

@ -63,4 +63,5 @@ def create_app(config_name="default"):
# Server start only if we run app directly
if __name__ == "__main__":
app = create_app()
app.run(host="0.0.0.0")
port = os.getenv("TODOLIST_PORT", "80")
app.run(host="0.0.0.0", port=port)