config.js
942 Bytes
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
const _ = require('lodash');
const env = process.env.NODE_ENV || 'development';
const isProduction = env === 'production';
const isTest = env === 'test';
const config = {
app: 'ufo-data-platform',
port: 6013,
mysql: {
host: '192.168.102.219',
user: 'yh_test',
password: 'yh_test',
port: '3306',
database: 'ufo_order'
},
uids: [100750, 10228]
};
if (isTest) {
_.merge(config, {
mysql: {
host: '192.168.102.219',
user: 'yh_test',
password: 'yh_test',
port: '3306',
database: 'ufo_order'
}
});
} else if (isProduction) {
_.merge(config, {
mysql: {
// host: '10.66.0.139',
// port: '3306',
// database: 'webapm',
// user: 'root',
// password: 'yB877Jy7tV6juIYk'
},
uids: []
});
}
module.exports = config;