configure the server

This commit is contained in:
Waylon Walker 2023-05-22 08:11:28 -05:00
parent 44ada8938d
commit ad6471da8c
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -26,9 +26,4 @@ def run(
help="show the log messages",
),
):
uvicorn.run(
"learn_sql_model.api.app:app",
port=get_config().port,
log_level="info",
reload=True,
)
uvicorn.run(**get_config().api_server.dict())