Blank page on Heroku - mean.js angular app

折月煮酒 提交于 2019-12-03 11:53:28

问题


I'm trying to deploy my mean.js app to heroku. Somehow the app on heroku is loading a blank page. It seems like the angular app is not being loaded properly.

Possibly a problem with bower dependencies?

Please take a look at the blank heroku app.

The heroku logs show no errors. No angular errors either.

I would appreciate any help.


回答1:


OK, I feel stupid.

It took me a while to realize that while my mean.js app is running in production mode, none of the client side javascript got loaded.

It turns out I needed to run grunt build (it's in the mean.js manual).

RTFM :-)




回答2:


Go into the App settings from Heroku dashboard.

Go to Config Vars

Change Production to Development.




回答3:


Remember, you have to run npm install as well as bower install



来源:https://stackoverflow.com/questions/24116130/blank-page-on-heroku-mean-js-angular-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!