2
尝试部署一个mean.io应用的Heroku和运行到各种各样的挑战Mean.io 0.5.5 Heroku的部署问题
Here are a few things I tried (Github Issue)
- 首先我必须提高我的赛道显存为1GB +或应用程序会崩溃。
- 接下来我不得不解决missing modules告诉Heroku的不缓存
node_modules
npm i -S ms kerberos connect-modrewrite
npm update --save
- 部署
heroku config:set NODE_MODULES_CACHE=false
- 最后我不得不set the CPU count to 2因为应用程序仍然内存太多了。因为aggregated.js缺少从包/自定义/文件夹凉亭文件
heroku config:set CPU_COUNT=2
该应用程序失败。我如何在heroku上运行mean postinstall
?
CPU_COUNT = 2非常适合我在Heroku上遇到的大内存问题。感谢那。 – Hoser
没问题,很高兴帮助 – timelf123