17 lines
313 B
Python
17 lines
313 B
Python
from __future__ import annotations
|
|
|
|
import uvicorn
|
|
|
|
from app.config import get_settings
|
|
from app.main import create_app
|
|
|
|
|
|
def main() -> None:
|
|
settings = get_settings()
|
|
app = create_app(settings)
|
|
uvicorn.run(app, host=settings.app_host, port=settings.app_port)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|
|
|