Files
jhonny-editor/rag/index_tigre.sh
T
João Henrique b541f502ba feat: initial commit - Jhonny Editor
- Adicionado estrutura completa do projeto
- Configurado MCP server para Premiere Pro
- Adicionado documentação e skills
- Configurado Gitignore para o projeto
2026-09-08 09:59:31 -04:00

20 lines
615 B
Bash
Executable File

#!/bin/bash
# Indexa o código do novo sistema Tigre (codeclass/Sources) no banco RAG
# dedicado (rag_tigre, schema tigre). Usa o mesmo container compartilhado
# rag-hub-db — um banco por sistema.
set -e
RAG_DIR="$(cd "$(dirname "$0")" && pwd)"
PROJECT_ROOT="$(dirname "$RAG_DIR")"
# Garante o túnel SSH até o Postgres da VPS (idempotente).
"$RAG_DIR/ensure_tunnel.sh" >&2
# usa o python do ag .venv se existir, senão o python3 global
PY="${RAG_DIR}/.venv/bin/python3"
if [ ! -x "$PY" ]; then
PY="$(command -v python3)"
fi
export RAG_ENV_FILE="$RAG_DIR/tigre.env"
exec "$PY" "$RAG_DIR/index_code.py" "$@"