We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22558f commit d409fc8Copy full SHA for d409fc8
knexfile.js
@@ -3,11 +3,11 @@ require('dotenv').config();
3
module.exports = {
4
development: {
5
client: 'pg',
6
- connection: 'postgres://localhost/paper_programs_development',
+ connection: process.env.DATABASE_URL || 'postgres://localhost/paper_programs_development',
7
},
8
docker: {
9
10
- connection: 'postgres://root@postgres/paper_programs_development',
+ connection: process.env.DATABASE_URL || 'postgres://root@postgres/paper_programs_development',
11
12
production: {
13
0 commit comments