From cbb7711a7df9f5b60623db202fad0914778e3423 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 29 Jul 2023 23:52:53 +0700 Subject: [PATCH] configure LISTEN_PORT --- app/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/server.py b/app/server.py index 4640474..a9e92c2 100644 --- a/app/server.py +++ b/app/server.py @@ -1,5 +1,7 @@ """wait for hooks""" +from os import environ + from flask import Flask from main import main as run_refresh @@ -15,5 +17,5 @@ def home(): if __name__ == "__main__": - PORT = 8080 + PORT = int(environ.get("LISTEN_PORT", 8001)) app.run(host="0.0.0.0", port=PORT)