Spaces:
Runtime error
Runtime error
Download entrypoint.sh from junaidte14/aiverse: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/spaces/junaidte14/aiverse/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/junaidte14/aiverse/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/junaidte14/aiverse/resolve/main/entrypoint.sh
456 Bytes
| set -e | |
| # Hugging Face defaults to port 7860 if not specified | |
| APP_PORT=${PORT:-7860} | |
| echo "📦 Running migrations..." | |
| # Note: Ensure your DB connection string is set in HF Space Secrets | |
| alembic upgrade head | |
| echo "🚀 Starting FastAPI on port $APP_PORT (Lean Mode)..." | |
| # Keep workers=1 to stay within the CPU/RAM efficiency lane | |
| exec uvicorn app.main:app \ | |
| --host 0.0.0.0 \ | |
| --port "$APP_PORT" \ | |
| --workers 1 \ | |
| --log-level info |