#!/usr/bin/env bash # INFRA:DEAD rds -- AWS RDS is gone. Any file referencing rds_connect.py or this hostname is stale and must be ported. 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"