fix: remove POSTGRES_PASSWORD export from run-fs-scraper-mac.sh — sourced from ~/.tip/.env only

This commit is contained in:
Rene Fichtmueller 2026-04-18 02:37:42 +02:00
parent fc3224be76
commit c5e7e7d7f6

View File

@ -57,14 +57,15 @@ 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
# 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) # Load local credentials from ~/.tip/.env (not committed to git).
# Must contain: export POSTGRES_PASSWORD=<value>
if [ -f "$HOME/.tip/.env" ]; then if [ -f "$HOME/.tip/.env" ]; then
# shellcheck disable=SC1091 # shellcheck disable=SC1091
source "$HOME/.tip/.env" source "$HOME/.tip/.env"
else
log "WARNING: ~/.tip/.env not found — POSTGRES_PASSWORD may be unset"
fi fi
log "Running fs-com scraper via tsx…" log "Running fs-com scraper via tsx…"