Showing
1 changed file
with
10 additions
and
8 deletions
@@ -43,7 +43,7 @@ var apiCofig = { | @@ -43,7 +43,7 @@ var apiCofig = { | ||
43 | //root:__dirname, | 43 | //root:__dirname, |
44 | EnvConst:{ | 44 | EnvConst:{ |
45 | domain:"http://192.168.102.210:8088/platform", | 45 | domain:"http://192.168.102.210:8088/platform", |
46 | - //domain:"http://172.16.6.225:8080/platform", | 46 | + // domain:"http://172.16.6.200:8088/platform", |
47 | yohoSearch: 'http://192.168.102.216:8080/yohosearch', | 47 | yohoSearch: 'http://192.168.102.216:8080/yohosearch', |
48 | system:Iaccount | 48 | system:Iaccount |
49 | }, | 49 | }, |
@@ -94,15 +94,17 @@ if(process.env.NODE_ENV!="coding"){ | @@ -94,15 +94,17 @@ if(process.env.NODE_ENV!="coding"){ | ||
94 | } | 94 | } |
95 | } | 95 | } |
96 | /*线下测试环境*/ | 96 | /*线下测试环境*/ |
97 | -if(process.env.NODE_ENV==="test211"){ | ||
98 | - apiCofig.EnvConst.domain="http://192.168.102.202:8088/platform"; | ||
99 | - apiCofig.EnvConst.yohoSearch="http://192.168.102.216:8080/yohosearch"; | ||
100 | -} | ||
101 | -/*腾讯云*/ | 97 | +// if(process.env.NODE_ENV==="test211"){ |
98 | +// apiCofig.EnvConst.domain="http://192.168.102.202:8088/platform"; | ||
99 | +// apiCofig.EnvConst.yohoSearch="http://192.168.102.216:8080/yohosearch"; | ||
100 | +// } | ||
101 | + | ||
102 | +/*测试环境*/ | ||
102 | if(process.env.NODE_ENV==="test"){ | 103 | if(process.env.NODE_ENV==="test"){ |
103 | - apiCofig.EnvConst.domain="http://10.66.100.6:8088/platform"; | ||
104 | - apiCofig.EnvConst.yohoSearch="http://10.66.100.4:8080/yohosearch"; | 104 | + apiCofig.EnvConst.domain=process.env.TEST_PLATFORM||"http://10.66.100.6:8088/platform"; |
105 | + apiCofig.EnvConst.yohoSearch=process.env.TEST_SEARCH||"http://10.66.100.4:8080/yohosearch"; | ||
105 | } | 106 | } |
107 | + | ||
106 | /*灰度环境*/ | 108 | /*灰度环境*/ |
107 | if(process.env.NODE_ENV==="gray"){ | 109 | if(process.env.NODE_ENV==="gray"){ |
108 | apiCofig.EnvConst.domain="http://172.31.23.161:8088/platform"; | 110 | apiCofig.EnvConst.domain="http://172.31.23.161:8088/platform"; |
-
Please register or login to post a comment