arm-core/api/run_server.py

13 lines
237 B
Python

import uvicorn
from src import app, get_settings
if __name__ == "__main__":
settings = get_settings()
uvicorn.run(
app,
host=settings.server.HOST,
port=settings.server.PORT,
lifespan="on",
)