Added variable APP_PORT to customize application port

This commit is contained in:
Marcin-Ramotowski 2025-05-04 16:42:43 +00:00
parent c1f0da4a9c
commit 76a351710f

View File

@ -63,5 +63,5 @@ def create_app(config_name="default"):
if __name__ == "__main__":
from waitress import serve
app = create_app()
port = os.getenv("API_PORT", "80")
port = os.getenv("APP_PORT", "80")
serve(app, host="0.0.0.0", port=port)