-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknexfile.js
executable file
·46 lines (42 loc) · 994 Bytes
/
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
module.exports = {
development: {
client: 'postgres',
connection: {
host: process.env.DATABASE_HOST || 'localhost',
database: process.env.DATABASE_DB || 'church',
user: process.env.DATABASE_USER || 'docker',
password: process.env.DATABASE_PASSWORD || 'xqi6V3NQ7V',
port: process.env.DATABASE_PORT || 3002
},
seeds: {
directory: './migrations/seeds'
},
debug: false
},
test: {
client: 'sqlite3',
connection: {
filename: ':memory:'
},
seeds: {
directory: './migrations/seeds'
},
debug: false
},
production: {
client: 'postgres',
connection: {
host: process.env.DATABASE_HOST,
database: process.env.DATABASE_DB,
user: process.env.DATABASE_USER,
password: process.env.DATABASE_PASSWORD,
port: process.env.DATABASE_PORT
},
migrations: {
tableName: 'knex_migrations'
},
seeds: {
directory: './migrations/seeds'
},
}
};