chore: update database ENV keys

pull/3643/head
Luke Edwards 5 years ago
parent 5dda05213e
commit 5e2c524825

@ -2,7 +2,12 @@ NODE_ENV=
PORT=
BASEURL=
DATABASE_URL=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
MAPBOX_ACCESS_TOKEN=
PGHOST=hostname
PGPORT=port
PGUSER=username
PGPASSWORD=password
PGDATABASE=database_name

@ -1,8 +1,7 @@
import { Pool } from 'pg';
export const DB = new Pool({
connectionString: process.env.DATABASE_URL
});
// Uses `PG*` ENV vars
export const DB = new Pool();
export function query(text, values=[]) {
return DB.query(text, values).then(r => r.rows);

Loading…
Cancel
Save