fix: remove hardcoded POSTGRES_PASSWORD from run-fs-scraper-mac.sh — use ~/.tip/.env
This commit is contained in:
parent
696127366c
commit
fc3224be76
@ -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=***REDACTED***
|
# 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"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user