configure LISTEN_PORT

This commit is contained in:
Simon 2023-07-29 23:52:53 +07:00
parent 02629fe090
commit cbb7711a7d
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 3 additions and 1 deletions

View File

@ -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)