From 7675a939a1016564c44178e1ff29feb2fd1efb9a Mon Sep 17 00:00:00 2001 From: Rene Fichtmueller Date: Sat, 18 Apr 2026 02:37:05 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20hardcoded=20POSTGRES=5FPASSWORD?= =?UTF-8?q?=20from=20run-fs-scraper-mac.sh=20=E2=80=94=20use=20~/.tip/.env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run-fs-scraper-mac.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run-fs-scraper-mac.sh b/run-fs-scraper-mac.sh index 9e54678..e20c1bf 100755 --- a/run-fs-scraper-mac.sh +++ b/run-fs-scraper-mac.sh @@ -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=tip_prod_2026 +# 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"