adjust postgres for heroku

pull/1/head
Matt Huntington 5 years ago
parent ef9aaf1ad8
commit fd200cc35b

@ -1,11 +1,7 @@
const Client = require('pg').Client const Client = require('pg').Client
const client = new Client({ const client = new Client({
user: '', connectionString: process.env.DATABASE_URL || 'postgresql://localhost:5432/contacts',
host: 'localhost',
database: 'contacts',
password: '',
port: 5432,
}) })
module.exports = client; module.exports = client;

Loading…
Cancel
Save