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…
Reference in new issue