Added variable APP_PORT to customize application port
This commit is contained in:
parent
c1f0da4a9c
commit
76a351710f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user