Added port via env

This commit is contained in:
Kevin Veen-Birkenbach committed 2025-07-05 09:32:07 +02:00
1 parent 4d68ed2a24
commit 1bea9703ea
5 files changed
+19 -8

No files matched your search

+2 -1
View File
@@ -64,4 +64,5 @@ def index():
)
if __name__ == "__main__":
app.run(debug=(FLASK_ENV == "development"), host="0.0.0.0", port=5000)
port = int(os.getenv("PORT", 5000))
app.run(debug=(FLASK_ENV == "development"), host="0.0.0.0", port=port)