hfcron / start.sh
Ajitdoval's picture
Update start.sh
2403740 verified
Raw
History Blame Contribute Delete
379 Bytes
#!/bin/bash
echo "Starting FastAPI Backend and Cron Worker..."
# Run FastAPI on internal port 8000 in the background
uvicorn backend.main:app --host 127.0.0.1 --port 8000 &
echo "Starting Next.js Frontend..."
# Navigate to the internal frontend folder where Next.js was built
cd frontend
# Start Next.js on the public port 7860 exposed by Hugging Face
npm run start -- -p 7860