-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
37 lines (27 loc) · 695 Bytes
/
Copy pathrun.py
File metadata and controls
37 lines (27 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""
Application entry point.
Starts the FastAPI server using Uvicorn.
"""
import os
import sys
from pathlib import Path
# Add project root to Python path
project_root = Path(__file__).parent.parent
sys.path.insert(0, str(project_root))
import uvicorn
from dotenv import load_dotenv
from src.core import get_settings
# Load environment variables
load_dotenv()
def main():
"""Main entry point for the application."""
settings = get_settings()
uvicorn.run(
"src.app:app",
host=settings.app.host,
port=settings.app.port,
reload=settings.app.debug,
log_level=settings.logging.level.lower()
)
if __name__ == "__main__":
main()