Add port configuration option

This commit is contained in:
april
2023-12-28 17:20:29 -06:00
parent e4f6298c27
commit 9d31a1af55
3 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
import uvicorn
from app.config import get_settings
if __name__ == '__main__':
settings = get_settings()
# Start the app
uvicorn.run("app.api:app", host="0.0.0.0", port=8081, reload=True)
uvicorn.run("app.api:app", host="0.0.0.0", port=settings.tailfin_port, reload=True)