Open PanYuntao opened 8 years ago
Hi~ all , this is my code in server.js ,NODE_ENV=dev run it's ok,but NODE_ENV=pro Warning: connect.session() MemoryStore is not designed
NODE_ENV=dev
NODE_ENV=pro
app.middleware('session:before', app.loopback.cookieParser("abc")); var store =new redisstore({ host: "127.0.0.1", port: "6379", pass: "secret", ttl: "3600" }); if (require.main === module) { store.client.unref(); } app.middleware('session', loopback.session({ saveUninitialized: true, resave: true, key: "secret", store:store , "secret": "secret" }));
Hi~ all , this is my code in server.js ,
NODE_ENV=dev
run it's ok,butNODE_ENV=pro
Warning: connect.session() MemoryStore is not designed