Authored by weiqingting

tijiao

... ... @@ -65,12 +65,12 @@ var apiCofig = {
views: path.resolve(__dirname,"apps", "0", "views/1")
},
useToEntry:function(app){
// if(process.env.NODE_ENV!="coding"){
// 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){
... ... @@ -93,6 +93,12 @@ if(process.env.NODE_ENV!="coding"){
views: path.resolve(__dirname,"views", "0", "1")
}
}
/*线下测试环境*/
if(process.env.NODE_ENV==="test211"){
apiCofig.EnvConst.domain="http://192.168.102.202:8088/platform";
apiCofig.EnvConst.bigdata="http://192.168.102.202:8091/bigdata";
}
/*腾讯云*/
if(process.env.NODE_ENV==="test"){
apiCofig.EnvConst.domain="http://10.66.100.6:8088/platform";
apiCofig.EnvConst.bigdata="http://10.66.100.7:8091/bigdata";
... ...