fix: remove hardcoded POSTGRES_PASSWORD from run-fs-scraper-mac.sh — use ~/.tip/.env

This commit is contained in:
Rene Fichtmueller 2026-04-18 02:37:05 +02:00
parent a1db0a7a90
commit 7675a939a1

View File

@ -57,9 +57,16 @@ export POSTGRES_HOST=localhost
export POSTGRES_PORT=$DB_LOCAL_PORT export POSTGRES_PORT=$DB_LOCAL_PORT
export POSTGRES_DB=transceiver_db export POSTGRES_DB=transceiver_db
export POSTGRES_USER=tip export POSTGRES_USER=tip
export POSTGRES_PASSWORD=tip_prod_2026 # POSTGRES_PASSWORD must be set in your environment or ~/.tip/.env
export POSTGRES_PASSWORD="${POSTGRES_PASSWORD:-}"
export NODE_ENV=production export NODE_ENV=production
# Load local credentials file if present (not committed to git)
if [ -f "$HOME/.tip/.env" ]; then
# shellcheck disable=SC1091
source "$HOME/.tip/.env"
fi
log "Running fs-com scraper via tsx…" log "Running fs-com scraper via tsx…"
"$NPX" tsx packages/scraper/src/scrapers/fs-com.ts 2>&1 | tee -a "$LOG" "$NPX" tsx packages/scraper/src/scrapers/fs-com.ts 2>&1 | tee -a "$LOG"