Skip to content

Commit 2d49ef0

Browse files
author
David Lee
committed
attaching postgresql db on heroku to server 2
1 parent 972980f commit 2d49ef0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ const image = require('./controllers/image');
1212
const db = knex({
1313
client: 'pg',
1414
connection: {
15-
host : 'postgresql-slippery-54423',
16-
user : '',
17-
password : '',
18-
database : 'smart-brain'
15+
host : process.env.DATABASE_URL,
16+
ssl: true
1917
}
2018
});
2119

0 commit comments

Comments
 (0)