File size: 568 Bytes
a436d0b 75ec748 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#!/bin/sh
# Start FastAPI
echo '🔧 Starting backend...'
uvicorn src.backend.submission_api:app \
--host 0.0.0.0 --port 8000 --log-level debug \
> /app/backend.log 2>&1 &
until curl -s http://localhost:8000/ > /dev/null; do
echo "FastAPI not ready yet. Retrying in 5 seconds..."
sleep 5
done
echo '✅ Backend ready'
ls
# Start Next.js
echo '🚀 Starting frontend'
cd frontend
npm run start -- -p 8001 &
echo '🚀 Frontend ready'
# Start Nginx to reverse proxy
echo "Starting Nginx"
nginx -g "daemon off;"
echo "Nginx ready"
echo " container ready !" |