forked from uncloud/uncloud
[metadata] change default port to 1234
This commit is contained in:
parent
c6b7152464
commit
6d51e2a8c4
1 changed files with 3 additions and 1 deletions
|
@ -13,8 +13,10 @@ api = Api(app)
|
||||||
|
|
||||||
app.logger.handlers.clear()
|
app.logger.handlers.clear()
|
||||||
|
|
||||||
|
DEFAULT_PORT=1234
|
||||||
|
|
||||||
arg_parser = argparse.ArgumentParser('metadata', add_help=False)
|
arg_parser = argparse.ArgumentParser('metadata', add_help=False)
|
||||||
arg_parser.add_argument('--port', '-p', default=80, help='By default bind to port 80')
|
arg_parser.add_argument('--port', '-p', default=DEFAULT_PORT, help='By default bind to port {}'.format(DEFAULT_PORT))
|
||||||
|
|
||||||
|
|
||||||
@app.errorhandler(Exception)
|
@app.errorhandler(Exception)
|
||||||
|
|
Loading…
Reference in a new issue