fix fastapi run bug

This commit is contained in:
yanyongyu
2020-08-22 14:11:04 +08:00
parent e86362572b
commit 5871330492
5 changed files with 47 additions and 15 deletions

View File

@ -108,9 +108,9 @@ class Driver(BaseDriver):
},
}
uvicorn.run(app or self.server_app,
host=str(host) or str(self.config.host),
host=host or str(self.config.host),
port=port or self.config.port,
reload=app and self.config.debug,
reload=bool(app) and self.config.debug,
debug=self.config.debug,
log_config=LOGGING_CONFIG,
**kwargs)