27 lines
No EOL
681 B
Python
27 lines
No EOL
681 B
Python
#!/usr/bin/env python3
|
||
"""
|
||
Development entry point for the Mock API application.
|
||
|
||
For production WSGI deployment, use wsgi.py instead.
|
||
"""
|
||
|
||
import logging
|
||
from app.core.app import create_app
|
||
|
||
logging.basicConfig(level=logging.INFO)
|
||
logger = logging.getLogger(__name__)
|
||
|
||
# Create the FastAPI application instance
|
||
app = create_app()
|
||
|
||
if __name__ == "__main__":
|
||
# Development entry point: run uvicorn with auto‑reload
|
||
import uvicorn
|
||
logger.info("Starting development server on http://0.0.0.0:8000")
|
||
uvicorn.run(
|
||
"main:app", # Use import string for reload support
|
||
host="0.0.0.0",
|
||
port=8000,
|
||
reload=True,
|
||
log_level="info"
|
||
) |