mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
- Redirected the default RDS_HOST/PGHOST database connection default to neon-64gb (100.92.88.64) across all Python shims, shell wrappers, and Rust probes. - Cleaned up local defaults in rds_connect.py, sync_wiki_to_rds.py, dataset_ingest_rds.py, batch_embed_artifacts.py, db.rs, cache-offload.sh, db-consolidate.sh, backup.sh, and ene-api-wrapper.sh. Build: 0 jobs, 0 errors (lake build)
23 lines
574 B
Bash
Executable file
23 lines
574 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT="/home/allaun/Research Stack/4-Infrastructure/infra/ene-rds"
|
|
BIN="${ENE_API_BIN:-$ROOT/target/release/ene-api}"
|
|
|
|
if [[ ! -x "$BIN" ]]; then
|
|
BIN="$ROOT/target/debug/ene-api"
|
|
fi
|
|
|
|
if [[ ! -x "$BIN" ]]; then
|
|
echo "ene-api binary not found; run: cargo build --release -p ene-api" >&2
|
|
exit 127
|
|
fi
|
|
|
|
export RDS_HOST="${RDS_HOST:-100.92.88.64}"
|
|
export RDS_PORT="${RDS_PORT:-5432}"
|
|
export RDS_USER="${RDS_USER:-postgres}"
|
|
export RDS_DB="${RDS_DB:-postgres}"
|
|
export ENE_API_BIND="${ENE_API_BIND:-0.0.0.0:3000}"
|
|
|
|
cd "$ROOT"
|
|
exec "$BIN"
|