[object Object]

← back to All Dw Landing

TK-11438: migrate build script postgres connections to unix socket

ee7645f8b5eea97dc28e7e46dd6396a39924019e · 2026-09-15 04:08:04 -0700 · steve@designerwallcoverings.com

Files touched

Diff

commit ee7645f8b5eea97dc28e7e46dd6396a39924019e
Author: steve@designerwallcoverings.com <steve@designerwallcoverings.com>
Date:   Tue Sep 15 04:08:04 2026 -0700

    TK-11438: migrate build script postgres connections to unix socket
---
 scripts/build-sites-json.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/build-sites-json.js b/scripts/build-sites-json.js
index fc7c166..5c29cbc 100644
--- a/scripts/build-sites-json.js
+++ b/scripts/build-sites-json.js
@@ -30,7 +30,7 @@ const PW = (() => {
 })();
 const pool = process.env.DATABASE_URL
   ? new Pool({ connectionString: process.env.DATABASE_URL })
-  : new Pool({ host: '127.0.0.1', port: 5432, user: 'dw_admin', database: 'dw_unified', password: PW });
+  : new Pool({ host: process.env.PGHOST || (process.platform === 'darwin' ? '/tmp' : '127.0.0.1'), port: 5432, user: 'dw_admin', database: 'dw_unified', password: PW });
 
 // Banned-word scrub on every DISPLAY string (standing rule). Raw vendor stays
 // internal for slug derivation only.

← cbfb266 register internal viewers: quadrille :9947, artmura :9948, r  ·  back to All Dw Landing  ·  (newest)