Download scripts/hf-start.sh from NAP1320/RotNot: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/scripts/hf-start.sh
- Command line
-
hf download hf://spaces/NAP1320/RotNot/scripts/hf-start.sh
-
curl -L -o hf-start.sh https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/scripts/hf-start.sh
427 Bytes
| # Startup for the Hugging Face Docker Space. | |
| # Storage is ephemeral, so apply migrations + seed on every boot (both are | |
| # idempotent), then start Next.js bound to the Space's public port. | |
| set -e | |
| echo "→ Applying database migrations…" | |
| npx prisma migrate deploy | |
| echo "→ Seeding database (idempotent)…" | |
| npx prisma db seed | |
| echo "→ Starting RotNot on 0.0.0.0:7860…" | |
| exec npm run start -- -p 7860 -H 0.0.0.0 | |