Spaces:
Runtime error
Runtime error
Download apps/init/entrypoint.sh from BTankut/Context-Store-LLM: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/apps/init/entrypoint.sh
- Command line
-
hf download hf://spaces/BTankut/Context-Store-LLM/apps/init/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/apps/init/entrypoint.sh
456 Bytes
| # Exit on any error | |
| set -e | |
| echo "Starting init CLI..." | |
| # Wait for database to be ready | |
| echo "Waiting for database connection..." | |
| until pg_isready -h "${DB_HOST:-localhost}" -p "${DB_PORT:-5432}" -U "${POSTGRES_USER:-docker}"; do | |
| echo "Database is unavailable - sleeping" | |
| sleep 2 | |
| done | |
| echo "Database is ready!" | |
| # Run the init command | |
| echo "Running init command..." | |
| node ./dist/esm/index.js init | |
| echo "Init completed successfully!" | |
| exit 0 |