career_app / start.sh
Youngger9765
fix: correct uvicorn startup path for HuggingFace Spaces
77b7140
raw
history blame contribute delete
259 Bytes
#!/bin/bash
# Start FastAPI backend in the background (run from /app so imports work)
cd /app && uvicorn backend.main:app --host 0.0.0.0 --port 8000 &
# Start Next.js frontend on port 7860 (required by Hugging Face)
cd /app/frontend && npm start -- -p 7860