...
|
...
|
@@ -42,8 +42,8 @@ var Iaccount = { |
|
|
var apiCofig = {
|
|
|
//root:__dirname,
|
|
|
EnvConst:{
|
|
|
// domain:"http://192.168.102.210:8088/platform",
|
|
|
domain:"http://172.16.6.200:8080/platform",
|
|
|
domain:"http://192.168.102.210:8088/platform",
|
|
|
// domain:"http://172.16.6.200:8088/platform",
|
|
|
yohoSearch: 'http://192.168.102.216:8080/yohosearch',
|
|
|
system:Iaccount
|
|
|
},
|
...
|
...
|
@@ -64,12 +64,12 @@ var apiCofig = { |
|
|
views: path.resolve(__dirname,"apps", "0", "views/1")
|
|
|
},
|
|
|
useToEntry:function(app){
|
|
|
if(process.env.NODE_ENV!="coding"&&process.env.NODE_ENV!=="test"){
|
|
|
options.store=new Redis({
|
|
|
port: 6379,
|
|
|
host: 'localhost'
|
|
|
});
|
|
|
}
|
|
|
//if(process.env.NODE_ENV!="coding"&&process.env.NODE_ENV!=="test"){
|
|
|
// options.store=new Redis({
|
|
|
// port: 6379,
|
|
|
// host: 'localhost'
|
|
|
// });
|
|
|
//}
|
|
|
app.use(session(options));
|
|
|
},
|
|
|
useToOuter:function(app,controllers){
|
...
|
...
|
@@ -84,7 +84,7 @@ if(process.env.NODE_ENV!=='development'){ |
|
|
}
|
|
|
|
|
|
/*服务器环境*/
|
|
|
if(process.env.NODE_ENV!="coding"){
|
|
|
//if(process.env.NODE_ENV!="coding"){
|
|
|
console.log("服务器环境");
|
|
|
apiCofig.MVC={
|
|
|
Interfacer:path.join(__dirname,"interfaces/0.js").replace(/0/g,'*'),
|
...
|
...
|
@@ -92,7 +92,7 @@ if(process.env.NODE_ENV!="coding"){ |
|
|
filters: path.join(__dirname, "filters.js"),
|
|
|
views: path.resolve(__dirname,"views", "0", "1")
|
|
|
}
|
|
|
}
|
|
|
//}
|
|
|
/*线下测试环境*/
|
|
|
if(process.env.NODE_ENV==="test211"){
|
|
|
apiCofig.EnvConst.domain="http://192.168.102.202:8088/platform";
|
...
|
...
|
|