在Heroku空白页 - mean.js角应用 [英] Blank page on Heroku - mean.js angular app

查看:115
本文介绍了在Heroku空白页 - mean.js角应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想部署我mean.js应用的Heroku。
不知怎的,在Heroku应用程序加载一个空白页。
这似乎是棱角分明的应用程序没有被正确加载。

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?

请看看在空白的Heroku应用

Heroku的日志显示没有错误。
无论是无角度误差。

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

我想AP preciate任何帮助。

I would appreciate any help.

推荐答案

OK,我觉得自己很蠢。

OK, I feel stupid.

我花了一段时间才能认识到,虽然我mean.js的应用程序在生产模式下运行,没有任何的JavaScript加载得到了客户端的。

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.

原来我需要运行咕噜版本(它在 mean.js手动)。

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

RTFM: - )

这篇关于在Heroku空白页 - mean.js角应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆