Spaces:
Paused
Paused
Download start.sh from Pepguy/valky_host: direct link, hf CLI and curl.
- Browser
- Download file 590 Bytes
-
https://huggingface.co/spaces/Pepguy/valky_host/resolve/main/start.sh
- Command line
-
hf download hf://spaces/Pepguy/valky_host/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/Pepguy/valky_host/resolve/main/start.sh
590 Bytes
| echo "===== Application Startup at $(date) =====" | |
| # --- Step 1: Start Redis server with config --- | |
| echo "[INFO] Starting Redis server with persistence config..." | |
| redis-server /app/redis.conf --daemonize yes | |
| echo "[INFO] Redis server started." | |
| # --- Step 2: Wait for Redis to be ready --- | |
| echo "[INFO] Waiting for Redis to respond to PING..." | |
| until redis-cli ping | grep -q "PONG"; do | |
| echo "[INFO] Redis not ready yet..." | |
| sleep 2 | |
| done | |
| echo "[SUCCESS] Redis is ready." | |
| # --- Step 3: Start Node or Bun application --- | |
| echo "[INFO] Launching Node app..." | |
| exec bun run app.js |