Support setting port in config.
This commit is contained in:
@@ -102,7 +102,7 @@ async def app_factory():
|
||||
|
||||
async def run_app():
|
||||
app = await app_factory()
|
||||
web.run_app(app)
|
||||
web.run_app(app, port=int(conf.API['PORT']))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user