Spaces:
Paused
Paused
File size: 327 Bytes
1bc3f18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/bin/bash
set -e
echo "==> Starting Celery worker in background..."
celery -A celery_app.celery_app worker \
-P threads \
--loglevel=info \
--concurrency=4 &
echo "==> Starting FastAPI (uvicorn) on port ${PORT:-7860}..."
exec uvicorn main:app \
--host 0.0.0.0 \
--port "${PORT:-7860}" \
--workers 1
|