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