Authored by weiqingting

提交

... ... @@ -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"){
options.store=new Redis({
port: 6379,
host: 'localhost'
});
}
app.use(session(options));
},
useToOuter:function(app,controllers){
... ...
... ... @@ -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"){
// options.store=new Redis({
// port: 6379,
// host: 'localhost'
// });
// }
app.use(session(options));
},
useToOuter:function(app){
... ...