Deactivate port if not set

This commit is contained in:
PCoder 2019-09-14 22:58:11 +05:30
parent 0a6db9ebc0
commit 44a68f88d8

View file

@ -350,4 +350,7 @@ api.add_resource(OrderList, "/order/list")
if __name__ == '__main__': if __name__ == '__main__':
if APP_PORT == 5000:
app.run(host="::", debug=True)
else:
app.run(host="::", port=APP_PORT, debug=True) app.run(host="::", port=APP_PORT, debug=True)