-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathknexfile.js
46 lines (42 loc) · 1.37 KB
/
knexfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Update with your config settings.
module.exports = {
development: {
client: 'pg',
connection: {
host : process.env.HEROKU_HOST || '127.0.0.1',
user : process.env.HEROKU_USER || null,
password : process.env.HEROKU_PASS || null,
database : process.env.HEROKU_DB || 'endevr',
port: process.env.HEROKU_PORT || 5432,
ssl: process.env.HEROKU_SSL || false
},
directory: __dirname + './migrations',
tableName: 'migrations'
},
staging: {
client: 'pg',
connection: {
host : process.env.HEROKU_HOST || '127.0.0.1',
user : process.env.HEROKU_USER || null,
password : process.env.HEROKU_PASS || null,
database : process.env.HEROKU_DB || 'endevr',
port: process.env.HEROKU_PORT || 5432,
ssl: process.env.HEROKU_SSL || false
},
directory: __dirname + './migrations',
tableName: 'migrations'
},
production: {
client: 'pg',
connection: {
host : process.env.HEROKU_HOST || '127.0.0.1',
user : process.env.HEROKU_USER || null,
password : process.env.HEROKU_PASS || null,
database : process.env.HEROKU_DB || 'endevr',
port: process.env.HEROKU_PORT || 5432,
ssl: process.env.HEROKU_SSL || false
},
directory: __dirname + './migrations',
tableName: 'migrations'
}
};