Spaces:
Paused
Paused
Download entrypoint.sh from dss11/coder-deployment-test: direct link, hf CLI and curl.
- Browser
- Download file 586 Bytes
-
https://huggingface.co/spaces/dss11/coder-deployment-test/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/dss11/coder-deployment-test/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/dss11/coder-deployment-test/resolve/main/entrypoint.sh
586 Bytes
| set -e | |
| # Set CODER_ACCESS_URL from SPACE_HOST | |
| if [ -n "$SPACE_HOST" ]; then | |
| export CODER_ACCESS_URL="https://${SPACE_HOST}" | |
| echo "CODER_ACCESS_URL set to: $CODER_ACCESS_URL" | |
| else | |
| echo "Warning: SPACE_HOST environment variable not set. CODER_ACCESS_URL may be incorrect." | |
| fi | |
| # Create the data directory if it doesn't exist | |
| if [ -n "$CODER_DATA_DIR" ]; then | |
| echo "Ensuring CODER_DATA_DIR ($CODER_DATA_DIR) exists..." | |
| mkdir -p "$CODER_DATA_DIR" | |
| echo "$CODER_DATA_DIR ensured." | |
| fi | |
| echo "Starting Coder server..." | |
| # Execute the original CMD (coder server) | |
| exec "$@" | |