From fd200cc35b21cf922937a2ce0cf116eafd69c48a Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sun, 30 Aug 2020 20:28:33 -0400 Subject: [PATCH] adjust postgres for heroku --- postgres.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/postgres.js b/postgres.js index 3eff03e..c756e29 100644 --- a/postgres.js +++ b/postgres.js @@ -1,11 +1,7 @@ const Client = require('pg').Client const client = new Client({ - user: '', - host: 'localhost', - database: 'contacts', - password: '', - port: 5432, + connectionString: process.env.DATABASE_URL || 'postgresql://localhost:5432/contacts', }) module.exports = client;