Skip to content

Commit 3ff40eb

Browse files
committed
change DB_URL to DATABASE_URL so heroku works
1 parent 515d4a6 commit 3ff40eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/db_connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ const { Pool } = require('pg');
22
const url = require('url');
33
require('env2')('./config.env');
44

5-
if(!process.env.DB_URL) throw new Error('Environment variabel DB_URL must be set');
5+
if(!process.env.DATABASE_URL) throw new Error('Environment variabel DATABASE_URL must be set');
66

7-
const params = url.parse(process.env.DB_URL);
7+
const params = url.parse(process.env.DATABASE_URL);
88
const [username, password] = params.auth.split(':');
99

1010
const options = {

0 commit comments

Comments
 (0)