how to fix waring 'MemoryStore is not designed for a production environment'?
发布于 3年前 作者 freizl 1754 次浏览

这个问题有办法解决么?

$ NODE_ENV=production node app.js

Warning: connection.session() MemoryStore is not
designed for a production environment, as it will leak 
memory, and obviously only work within a single process.
2 回复

使用connect-mongo或connect-redis代替MemoryStore 存储session

Got it. Thank you.

回到顶部