template-test1/main.py
2025-11-12 07:33:43 +00:00

16 lines
425 B
Python

from app.setup_app import create_app
from app.utils.config import settings
from app.utils.logger import logger
app = create_app()
if __name__ == "__main__":
import uvicorn
logger.info(f"Starting server on {settings.UVICORN_HOST}:{settings.UVICORN_PORT}...")
uvicorn.run(
'main:app',
host=settings.UVICORN_HOST,
port=settings.UVICORN_PORT,
reload=settings.is_development(),
)