Deactivate port if not set

This commit is contained in:
PCoder 2019-09-14 22:58:11 +05:30
parent 0a6db9ebc0
commit 44a68f88d8
1 changed files with 4 additions and 1 deletions

View File

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