diff --git a/run-fs-scraper-mac.sh b/run-fs-scraper-mac.sh index e20c1bf..92bdd40 100755 --- a/run-fs-scraper-mac.sh +++ b/run-fs-scraper-mac.sh @@ -57,14 +57,15 @@ export POSTGRES_HOST=localhost export POSTGRES_PORT=$DB_LOCAL_PORT export POSTGRES_DB=transceiver_db export POSTGRES_USER=tip -# POSTGRES_PASSWORD must be set in your environment or ~/.tip/.env -export POSTGRES_PASSWORD="${POSTGRES_PASSWORD:-}" export NODE_ENV=production -# Load local credentials file if present (not committed to git) +# Load local credentials from ~/.tip/.env (not committed to git). +# Must contain: export POSTGRES_PASSWORD= if [ -f "$HOME/.tip/.env" ]; then # shellcheck disable=SC1091 source "$HOME/.tip/.env" +else + log "WARNING: ~/.tip/.env not found — POSTGRES_PASSWORD may be unset" fi log "Running fs-com scraper via tsx…"