Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuloulou
/
yohobuy-portal-fe2
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
weiqingting
9 years ago
Commit
d7d49fa91a44ee5ce505d236293aace6b36f40c4
1 parent
ce857747
环境接口配置
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
code/index.js
code/index.js
View file @
d7d49fa
...
...
@@ -43,7 +43,7 @@ var apiCofig = {
//root:__dirname,
EnvConst
:{
domain
:
"http://192.168.102.210:8088/platform"
,
//
domain:"http://172.16.6.225:8080
/platform",
//
domain:"http://172.16.6.200:8088
/platform",
yohoSearch
:
'http://192.168.102.216:8080/yohosearch'
,
system
:
Iaccount
},
...
...
@@ -94,15 +94,17 @@ if(process.env.NODE_ENV!="coding"){
}
}
/*线下测试环境*/
if
(
process
.
env
.
NODE_ENV
===
"test211"
){
apiCofig
.
EnvConst
.
domain
=
"http://192.168.102.202:8088/platform"
;
apiCofig
.
EnvConst
.
yohoSearch
=
"http://192.168.102.216:8080/yohosearch"
;
}
/*腾讯云*/
// if(process.env.NODE_ENV==="test211"){
// apiCofig.EnvConst.domain="http://192.168.102.202:8088/platform";
// apiCofig.EnvConst.yohoSearch="http://192.168.102.216:8080/yohosearch";
// }
/*测试环境*/
if
(
process
.
env
.
NODE_ENV
===
"test"
){
apiCofig
.
EnvConst
.
domain
=
"http://10.66.100.6:8088/platform"
;
apiCofig
.
EnvConst
.
yohoSearch
=
"http://10.66.100.4:8080/yohosearch"
;
apiCofig
.
EnvConst
.
domain
=
process
.
env
.
TEST_PLATFORM
||
"http://10.66.100.6:8088/platform"
;
apiCofig
.
EnvConst
.
yohoSearch
=
process
.
env
.
TEST_SEARCH
||
"http://10.66.100.4:8080/yohosearch"
;
}
/*灰度环境*/
if
(
process
.
env
.
NODE_ENV
===
"gray"
){
apiCofig
.
EnvConst
.
domain
=
"http://172.31.23.161:8088/platform"
;
...
...
Please
register
or
login
to post a comment