Support setting port in config.

This commit is contained in:
2025-06-10 22:27:10 +10:00
parent dc551b34a9
commit c07577cc0a

View File

@@ -102,7 +102,7 @@ async def app_factory():
async def run_app(): async def run_app():
app = await app_factory() app = await app_factory()
web.run_app(app) web.run_app(app, port=int(conf.API['PORT']))
if __name__ == '__main__': if __name__ == '__main__':