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 696127366c
commit fc3224be76

View File

@ -57,9 +57,16 @@ export POSTGRES_HOST=localhost
export POSTGRES_PORT=$DB_LOCAL_PORT
export POSTGRES_DB=transceiver_db
export POSTGRES_USER=tip
export POSTGRES_PASSWORD=***REDACTED***
# 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)
if [ -f "$HOME/.tip/.env" ]; then
# shellcheck disable=SC1091
source "$HOME/.tip/.env"
fi
log "Running fs-com scraper via tsx…"
"$NPX" tsx packages/scraper/src/scrapers/fs-com.ts 2>&1 | tee -a "$LOG"