Update Flask app routing and port config

This commit is contained in:
Tahar Lamred & Theresa Nerz 2026-07-01 15:48:50 +02:00
parent b3a0385346
commit 8d18c2f8c4

View file

@ -1,8 +1,11 @@
from flask import Flask, request
import os
from flask import Flask, redirect, request
app = Flask(__name__)
@app.route("/")
@app.route("/app")
@app.route("/app/")
def hello():
return "Willkommen in unserem Escape Room!"
@ -30,4 +33,5 @@ def pinnwand():
'<button>Senden</button></form><ul>' + liste + '</ul>'
if __name__ == "__main__":
app.run(host="0.0.0.0", port=9003)
port = int(os.environ.get("PORT", "9003"))
app.run(host="0.0.0.0", port=port)