fix: remove POSTGRES_PASSWORD export from run-fs-scraper-mac.sh — sourced from ~/.tip/.env only
This commit is contained in:
parent
7675a939a1
commit
53836a14a8
@ -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…"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user