将 Meteor + Angular2 应用程序部署到 Heroku
Deploying Meteor + Angular2 app to Heroku
我有一个正在使用 Meteor、Angular2 编写的应用程序(使用 angular-meteor package), Typescript, and MongoDB. I'm trying to put it up on Heroku and running into difficulties. I'm using this meteor buildpack. I'm not sure whether the problems are with Meteor, Heroku, or Angular2, though I suspect it's something Heroku isn't configuring correctly for Angular2. The site is at http://alfred-zahner.herokuapp.com/,我得到的错误是:
EXCEPTION: No provider for t! (e -> t)
我检查了 Heroku 日志,那里没有任何问题的迹象。我的部分问题是我看不到 t
和 e
是什么,因为有人(Heroku?)在丑化 JavaScript。我不太确定如何进行调试。
解决这个问题的一种方法是找出并修复错误,但如果有更好的构建包,或者更好的(必须是免费的!)托管环境,我会很高兴使用。
编辑
这不是 Heroku 的问题。部署到 Meteor 的内置部署测试 (meteor deploy site.meteor.com
) 时也会发生同样的事情。但是,如果我使用 meteor deploy --debug site.meteor.com
进行部署,它会起作用,因此 Angular2 在 Meteor 准备应用程序进行生产时发生的额外处理存在一些问题。
关于 angular2-meteor Github I found out that this is an issue 与 Angular 2 特别是在使用 UglifyJS 时。目前,似乎唯一的解决方案是使用 meteor deploy --debug
。我打算只在 meteor 的内置主机上使用它,直到 Angular 2 播放得很好。
我有一个正在使用 Meteor、Angular2 编写的应用程序(使用 angular-meteor package), Typescript, and MongoDB. I'm trying to put it up on Heroku and running into difficulties. I'm using this meteor buildpack. I'm not sure whether the problems are with Meteor, Heroku, or Angular2, though I suspect it's something Heroku isn't configuring correctly for Angular2. The site is at http://alfred-zahner.herokuapp.com/,我得到的错误是:
EXCEPTION: No provider for t! (e -> t)
我检查了 Heroku 日志,那里没有任何问题的迹象。我的部分问题是我看不到 t
和 e
是什么,因为有人(Heroku?)在丑化 JavaScript。我不太确定如何进行调试。
解决这个问题的一种方法是找出并修复错误,但如果有更好的构建包,或者更好的(必须是免费的!)托管环境,我会很高兴使用。
编辑
这不是 Heroku 的问题。部署到 Meteor 的内置部署测试 (meteor deploy site.meteor.com
) 时也会发生同样的事情。但是,如果我使用 meteor deploy --debug site.meteor.com
进行部署,它会起作用,因此 Angular2 在 Meteor 准备应用程序进行生产时发生的额外处理存在一些问题。
关于 angular2-meteor Github I found out that this is an issue 与 Angular 2 特别是在使用 UglifyJS 时。目前,似乎唯一的解决方案是使用 meteor deploy --debug
。我打算只在 meteor 的内置主机上使用它,直到 Angular 2 播放得很好。