This repository has been archived by the owner on Oct 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
knexfile.js
96 lines (90 loc) · 1.74 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Update with your config settings.
try {
require('babel-register');
require('babel-polyfill');
} catch (e) {
// it's ok. might be already enabled
}
module.exports = {
development: {
client: 'postgresql',
connection: {
host: '127.0.0.1',
user: 'libertysoil',
password: 'libertysoil',
database: 'libertysoil',
charset: 'utf8'
},
pool: {
min: 2,
max: 10,
ping: (conn, cb) => {
conn.query('SELECT 1', cb);
}
},
migrations: {
tableName: 'knex_migrations'
}
},
test: {
client: 'postgresql',
connection: {
host: '127.0.0.1',
user: 'libertysoil',
password: 'libertysoil',
database: 'libertysoil_test',
charset: 'utf8'
},
pool: {
min: 2,
max: 10,
ping: (conn, cb) => {
conn.query('SELECT 1', cb);
}
},
migrations: {
tableName: 'knex_migrations'
}
},
travis: {
client: 'postgresql',
connection: {
host: '127.0.0.1',
user: 'postgres',
password: 'postgres',
database: 'libertysoil',
charset: 'utf8'
},
pool: {
min: 2,
max: 10,
ping: (conn, cb) => {
conn.query('SELECT 1', cb);
}
},
migrations: {
tableName: 'knex_migrations'
}
},
staging: {
client: 'postgresql',
connection: {
database: 'postgres',
user: 'postgres',
password: 'Laik7akoh2ai',
host: process.env.DB_PORT_5432_TCP_ADDR,
port: process.env.DB_PORT_5432_TCP_PORT,
charset: 'utf8'
},
pool: {
min: 2,
max: 10,
ping: (conn, cb) => {
conn.query('SELECT 1', cb);
}
},
migrations: {
tableName: 'knex_migrations'
}
}
};