forked from uncloud/uncloud
[metadata] allow passing in the port
This commit is contained in:
parent
eb19b10333
commit
b95037f624
2 changed files with 6 additions and 2 deletions
|
|
@ -111,8 +111,8 @@ class Root(Resource):
|
|||
api.add_resource(Root, "/")
|
||||
|
||||
|
||||
def main():
|
||||
app.run(debug=True, host="::", port="80")
|
||||
def main(port=None):
|
||||
app.run(debug=True, host="::", port=port)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue