24 lines
427 B
Python
24 lines
427 B
Python
#!/usr/bin/env python
|
|
"""
|
|
Startup script for the backend server
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
|
|
# Add current directory to Python path
|
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
sys.path.insert(0, current_dir)
|
|
|
|
# Now import and run the app
|
|
if __name__ == "__main__":
|
|
import uvicorn
|
|
from main import app
|
|
|
|
uvicorn.run(
|
|
"main:app",
|
|
host="0.0.0.0",
|
|
port=8001,
|
|
reload=True
|
|
)
|