-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknexfile.ts
59 lines (53 loc) · 1.16 KB
/
knexfile.ts
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
import knex from 'knex';
import path from 'path';
import dotenv from 'dotenv';
dotenv.config({ path: path.resolve(__dirname, '../.env') });
type KnexConfig = {
development: knex.Config,
production: knex.Config,
staging: knex.Config,
};
const config: KnexConfig = {
development: {
client: 'postgresql',
connection: {
database: 'dae50k5ac6giat',
user: 'scocollspjidwo',
password: 'a6e766f2d5a88f5cec601c915ea17b205967082d6ae36a80d821a4623ffee5d3',
},
pool: {
min: 2,
max: 10,
},
migrations: {
tableName: 'knex_migrations',
},
seeds: {
directory: './seeds',
},
},
staging: {
client: 'postgresql',
connection: {
database: 'dae50k5ac6giat',
user: 'scocollspjidwo',
password: 'a6e766f2d5a88f5cec601c915ea17b205967082d6ae36a80d821a4623ffee5d3',
},
pool: {
min: 2,
max: 10,
},
migrations: {
tableName: 'knex_migrations',
},
seeds: {
directory: './seeds',
},
},
production: {
client: 'postgresql',
connection: process.env.DATABASE_URL + '?ssl=true',
},
};
export default config;
module.exports = config;