This commit is contained in:
Qiao Wang 2023-12-09 12:43:10 +08:00
parent d12fc37a50
commit 60e810450d

View file

@ -235,4 +235,4 @@ app.on_response_prepare.append(on_prepare)
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
log.info(f"Listening on {config.HOST}:{config.PORT}")
web.run_app(app, host=config.HOST, port=8081, reuse_port=False)
web.run_app(app, host=config.HOST, port=int(config.PORT), reuse_port=True)