Make uncloud host running

This commit is contained in:
Nico Schottelius 2019-12-31 14:06:51 +01:00
commit e775570884
2 changed files with 19 additions and 5 deletions

View file

@ -590,11 +590,10 @@ def main(debug=False, port=None):
# json.dumps(data),
# )
if port:
app_port = port
try:
app.run(host="::", debug=False)
app.run(host="::",
port=port,
debug=debug)
except OSError as e:
raise UncloudException("Failed to start Flask: {}".format(e))