Added port via env

This commit is contained in:
2025-07-05 09:32:07 +02:00
parent 4d68ed2a24
commit 1bea9703ea
5 changed files with 19 additions and 8 deletions

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)