Update Flask app routing and port config
This commit is contained in:
parent
b3a0385346
commit
8d18c2f8c4
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue