-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknexfile.js
41 lines (41 loc) · 980 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
/**
* @typedef {import('knex').Knex.Config} KnexConfig
* @type {{ [key: string]: KnexConfig }}
*/
export default {
development: {
client: 'mysql',
connection: {
host: process.env.DB_HOST || 'localhost',
user: process.env.DB_USER || 'directus',
password: process.env.DB_PASSWORD || 'password',
database: process.env.DB_DATABSE || 'dashboard-globalping',
port: process.env.DB_PORT || 13306,
},
pool: {
min: 0,
max: 10,
propagateCreateError: false,
},
acquireConnectionTimeout: 2000,
seeds: {
directory: `./seeds/development`,
},
},
e2e: {
client: 'mysql',
connection: {
host: process.env.DB_HOST || '127.0.0.1',
user: process.env.DB_USER || 'directus',
password: process.env.DB_PASSWORD || 'password',
database: process.env.DB_DATABSE || 'dashboard-globalping',
port: process.env.DB_PORT || 13306,
},
pool: {
min: 0,
max: 10,
propagateCreateError: false,
},
acquireConnectionTimeout: 2000,
},
};