Spaces:
Sleeping

HSERRAGV3 / scripts /entrypoint.sh
Struggler's picture
Add optional LightRAG relational retrieval routing
6272819
Raw History Blame Contribute Delete
821 Bytes
#!/usr/bin/env sh
set -e
# Docker Spaces exclude the repository's runtime `data/` tree from the build
# context. The reviewed graph index is packaged under assets and copied into
# the approved runtime data directory before Django starts.
if [ -f ./assets/lightrag_hf_index/hserag_document_manifest.json ]; then
mkdir -p ./data/lightrag_hf_index
cp -a ./assets/lightrag_hf_index/. ./data/lightrag_hf_index/
fi
python backend/manage.py migrate --noinput
python backend/manage.py seed_users
python backend/manage.py check_users
python backend/manage.py import_sessions reference/user_sessions.json || true
python backend/manage.py collectstatic --noinput
exec gunicorn hserag.wsgi:application \
--chdir backend \
--bind 0.0.0.0:${PORT:-7860} \
--workers ${WEB_CONCURRENCY:-1} \
--timeout ${WEB_TIMEOUT:-180}