template
This commit is contained in:
23
backend/run.py
Normal file
23
backend/run.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""
|
||||
=============================================================================
|
||||
RUN SCRIPT
|
||||
=============================================================================
|
||||
|
||||
Simple script to run the FastAPI server.
|
||||
Useful for development and debugging.
|
||||
|
||||
Usage:
|
||||
python run.py
|
||||
"""
|
||||
|
||||
import uvicorn
|
||||
from config import settings
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run(
|
||||
"main:app",
|
||||
host="0.0.0.0",
|
||||
port=settings.PORT,
|
||||
reload=settings.ENVIRONMENT == "development", # Auto-reload in dev
|
||||
log_level="info",
|
||||
)
|
||||
Reference in New Issue
Block a user