|
@@ -32,12 +32,11 @@ module.exports = { |
|
@@ -32,12 +32,11 @@ module.exports = { |
32
|
activity: '//activity.yohobuy.com',
|
32
|
activity: '//activity.yohobuy.com',
|
33
|
index: '//m.yohobuy.com'
|
33
|
index: '//m.yohobuy.com'
|
34
|
},
|
34
|
},
|
35
|
- useOneapm: false,
|
|
|
36
|
useCache: false,
|
35
|
useCache: false,
|
37
|
memcache: {
|
36
|
memcache: {
|
38
|
- master: ['192.168.102.205:12111'],
|
|
|
39
|
- slave: ['192.168.102.205:12111'],
|
|
|
40
|
- session: ['192.168.102.205:12111'],
|
37
|
+ master: ['192.168.102.168:12111'],
|
|
|
38
|
+ slave: ['192.168.102.168:12111'],
|
|
|
39
|
+ session: ['192.168.102.168:12111'],
|
41
|
timeout: 1000,
|
40
|
timeout: 1000,
|
42
|
retries: 0
|
41
|
retries: 0
|
43
|
},
|
42
|
},
|
|
@@ -83,16 +82,15 @@ if (isProduction) { |
|
@@ -83,16 +82,15 @@ if (isProduction) { |
83
|
domains: {
|
82
|
domains: {
|
84
|
api: 'http://api.yoho.yohoops.org/',
|
83
|
api: 'http://api.yoho.yohoops.org/',
|
85
|
service: 'http://service.yoho.yohoops.org/',
|
84
|
service: 'http://service.yoho.yohoops.org/',
|
86
|
- liveApi: 'http://preapi.live.yoho.cn/' // 'http://api.live.yoho.cn/'
|
85
|
+ liveApi: 'http://api.live.yoho.cn/'
|
87
|
},
|
86
|
},
|
88
|
memcache: {
|
87
|
memcache: {
|
89
|
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
88
|
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
90
|
slave: ['memcache1.yohoops.org:12112', 'memcache2.yohoops.org:12112', 'memcache3.yohoops.org:12112'],
|
89
|
slave: ['memcache1.yohoops.org:12112', 'memcache2.yohoops.org:12112', 'memcache3.yohoops.org:12112'],
|
91
|
session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
90
|
session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
92
|
- timeout: 1000,
|
91
|
+ timeout: 100,
|
93
|
retries: 0
|
92
|
retries: 0
|
94
|
},
|
93
|
},
|
95
|
- useOneapm: true,
|
|
|
96
|
useCache: true,
|
94
|
useCache: true,
|
97
|
interfaceShunt: {
|
95
|
interfaceShunt: {
|
98
|
open: false,
|
96
|
open: false,
|
|
@@ -103,18 +101,17 @@ if (isProduction) { |
|
@@ -103,18 +101,17 @@ if (isProduction) { |
103
|
Object.assign(module.exports, {
|
101
|
Object.assign(module.exports, {
|
104
|
appName: 'm.yohobuy.com for test',
|
102
|
appName: 'm.yohobuy.com for test',
|
105
|
domains: {
|
103
|
domains: {
|
106
|
- api: 'http://api-test3.yohops.com:9999/',
|
|
|
107
|
- service: 'http://service-test3.yohops.com:9999/',
|
|
|
108
|
- liveApi: 'http://testapi.live.yohops.com:9999/'
|
104
|
+ api: process.env.TEST_API || 'http://api-test1.yohops.com:9999/',
|
|
|
105
|
+ service: process.env.TEST_SERVICE || 'http://service-test1.yohops.com:9999/',
|
|
|
106
|
+ liveApi: process.env.TEST_LIVE || 'http://testapi.live.yohops.com:9999/'
|
109
|
},
|
107
|
},
|
110
|
memcache: {
|
108
|
memcache: {
|
111
|
master: ['127.0.0.1:12111'],
|
109
|
master: ['127.0.0.1:12111'],
|
112
|
slave: ['127.0.0.1:12112'],
|
110
|
slave: ['127.0.0.1:12112'],
|
113
|
session: ['127.0.0.1:12111'],
|
111
|
session: ['127.0.0.1:12111'],
|
114
|
- timeout: 1000,
|
112
|
+ timeout: 100,
|
115
|
retries: 0
|
113
|
retries: 0
|
116
|
},
|
114
|
},
|
117
|
- useOneapm: true,
|
|
|
118
|
useCache: true
|
115
|
useCache: true
|
119
|
});
|
116
|
});
|
120
|
} |
117
|
} |