16 lines
425 B
Python
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(),
|
|
) |