-
Notifications
You must be signed in to change notification settings - Fork 1
/
knexfile.js
41 lines (37 loc) · 1.1 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
module.exports = {
development: {
client: 'postgres',
connection: {
database: process.env.DATABASE_NAME || 'taskflow',
host: process.env.DATABASE_HOST || 'localhost',
password: process.env.DATABASE_PASSWORD || 'test-password',
port: process.env.DATABASE_PORT,
user: process.env.DATABASE_USERNAME || 'postgres'
},
pool: { min: 1, max: 1 },
seeds: {
directory: './seeds'
}
},
test: {
client: 'postgres',
connection: {
database: process.env.DATABASE_NAME || 'taskflow-test',
host: process.env.DATABASE_HOST || 'localhost',
password: process.env.DATABASE_PASSWORD || 'test-password',
port: process.env.DATABASE_PORT,
user: process.env.DATABASE_USERNAME || 'postgres'
}
},
asl: {
test: {
client: 'postgres',
connection: {
database: process.env.ASL_DATABASE_NAME || 'asl-test',
host: process.env.ASL_DATABASE_HOST || 'localhost',
user: process.env.ASL_DATABASE_USERNAME || 'postgres',
password: process.env.ASL_DATABASE_PASSWORD || 'test-password'
}
}
}
};