Spaces:
Paused
Paused
Download entrypoint.sh from rayhanzuck/api: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/spaces/rayhanzuck/api/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/rayhanzuck/api/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/rayhanzuck/api/resolve/main/entrypoint.sh
384 Bytes
| echo "Downloading project from ZIP_URL=$ZIP_URL" | |
| mkdir -p /tmp/project | |
| curl -L "$ZIP_URL" -o /tmp/project.zip | |
| unzip /tmp/project.zip -d /tmp/project | |
| cd $(find /tmp/project -type f -name "package.json" -exec dirname {} \; | head -n 1) | |
| echo "Installing dependencies..." | |
| npm install | |
| echo "Building app..." | |
| npm run build | |
| echo "Starting app..." | |
| export PORT=7860 | |
| npm start | |