database.js
1.09 KB
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
module.exports = {
test: {
username: 'root',
password: '',
database: 'yoho_activity_platform',
port: '3306',
host: '0.0.0.0',
dialect: 'mysql',
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
},
seederStorage: 'sequelize'
},
test3: {
username: 'yh_test',
password: 'yh_test',
database: 'yoho_activity_platform',
port: '3306',
host: '192.168.102.219',
dialect: 'mysql',
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
},
seederStorage: 'sequelize'
},
production: {
username: 'yh_vpc_bak',
password: 'yoho@2Y$^YpNb7hp',
database: 'yoho_activity_platform',
port: '3306',
host: '10.66.106.4',
dialect: 'mysql',
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
},
seederStorage: 'sequelize'
}
}[process.env.NODE_ENV || 'test'];