← back to Tk11438 Postgres Migration
verification/fleet-classification/patches/gracie-internal.patch
6 lines
--- a/lib/vendor-requests.js
+++ b/lib/vendor-requests.js
@@ -52 +52 @@
- if (!pool) pool = new Pool({ host: '127.0.0.1', port: 5432, user: 'dw_admin', database: 'dw_unified', password: PGPASS, max: 3 });
+ if (!pool) pool = new Pool({ host: process.env.PGHOST || (process.platform === 'darwin' ? '/tmp' : '127.0.0.1'), port: 5432, user: 'dw_admin', database: 'dw_unified', password: PGPASS, max: 3 });