|
@@ -28,7 +28,6 @@ module.exports = { |
|
@@ -28,7 +28,6 @@ module.exports = { |
28
|
activity: '//activity.yohobuy.com',
|
28
|
activity: '//activity.yohobuy.com',
|
29
|
index: '//m.yohobuy.com'
|
29
|
index: '//m.yohobuy.com'
|
30
|
},
|
30
|
},
|
31
|
- useOneapm: false,
|
|
|
32
|
useCache: false,
|
31
|
useCache: false,
|
33
|
memcache: {
|
32
|
memcache: {
|
34
|
master: ['192.168.102.205:12111'],
|
33
|
master: ['192.168.102.205:12111'],
|
|
@@ -79,16 +78,15 @@ if (isProduction) { |
|
@@ -79,16 +78,15 @@ if (isProduction) { |
79
|
domains: {
|
78
|
domains: {
|
80
|
api: 'http://api.yoho.yohoops.org/',
|
79
|
api: 'http://api.yoho.yohoops.org/',
|
81
|
service: 'http://service.yoho.yohoops.org/',
|
80
|
service: 'http://service.yoho.yohoops.org/',
|
82
|
- liveApi: 'http://preapi.live.yoho.cn/' // 'http://api.live.yoho.cn/'
|
81
|
+ liveApi: 'http://api.live.yoho.cn/'
|
83
|
},
|
82
|
},
|
84
|
memcache: {
|
83
|
memcache: {
|
85
|
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
84
|
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
86
|
slave: ['memcache1.yohoops.org:12112', 'memcache2.yohoops.org:12112', 'memcache3.yohoops.org:12112'],
|
85
|
slave: ['memcache1.yohoops.org:12112', 'memcache2.yohoops.org:12112', 'memcache3.yohoops.org:12112'],
|
87
|
session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
86
|
session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
88
|
- timeout: 1000,
|
87
|
+ timeout: 100,
|
89
|
retries: 0
|
88
|
retries: 0
|
90
|
},
|
89
|
},
|
91
|
- useOneapm: true,
|
|
|
92
|
useCache: true,
|
90
|
useCache: true,
|
93
|
interfaceShunt: {
|
91
|
interfaceShunt: {
|
94
|
open: false,
|
92
|
open: false,
|
|
@@ -99,18 +97,17 @@ if (isProduction) { |
|
@@ -99,18 +97,17 @@ if (isProduction) { |
99
|
Object.assign(module.exports, {
|
97
|
Object.assign(module.exports, {
|
100
|
appName: 'm.yohobuy.com for test',
|
98
|
appName: 'm.yohobuy.com for test',
|
101
|
domains: {
|
99
|
domains: {
|
102
|
- api: 'http://api-test3.yohops.com:9999/',
|
|
|
103
|
- service: 'http://service-test3.yohops.com:9999/',
|
|
|
104
|
- liveApi: 'http://testapi.live.yohops.com:9999/'
|
100
|
+ api: process.end.TEST_API || 'http://api-test1.yohops.com:9999/',
|
|
|
101
|
+ service: process.end.TEST_SERVICE || 'http://service-test1.yohops.com:9999/',
|
|
|
102
|
+ liveApi: process.end.TEST_LIVE || 'http://testapi.live.yohops.com:9999/'
|
105
|
},
|
103
|
},
|
106
|
memcache: {
|
104
|
memcache: {
|
107
|
master: ['127.0.0.1:12111'],
|
105
|
master: ['127.0.0.1:12111'],
|
108
|
slave: ['127.0.0.1:12112'],
|
106
|
slave: ['127.0.0.1:12112'],
|
109
|
session: ['127.0.0.1:12111'],
|
107
|
session: ['127.0.0.1:12111'],
|
110
|
- timeout: 1000,
|
108
|
+ timeout: 100,
|
111
|
retries: 0
|
109
|
retries: 0
|
112
|
},
|
110
|
},
|
113
|
- useOneapm: true,
|
|
|
114
|
useCache: true
|
111
|
useCache: true
|
115
|
});
|
112
|
});
|
116
|
} |
113
|
} |