Deactivate port if not set
This commit is contained in:
parent
0a6db9ebc0
commit
44a68f88d8
1 changed files with 4 additions and 1 deletions
|
@ -350,4 +350,7 @@ api.add_resource(OrderList, "/order/list")
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host="::", port=APP_PORT, debug=True)
|
||||
if APP_PORT == 5000:
|
||||
app.run(host="::", debug=True)
|
||||
else:
|
||||
app.run(host="::", port=APP_PORT, debug=True)
|
||||
|
|
Loading…
Reference in a new issue