我刚刚将我的应用更新为流星0.8.3。在本地运行没有问题。但是当我尝试将其推送到heroku时,我会收到以下错误:
Building meteor bundle
simple-schema: updating npm dependencies -- string...
iron-router: updating npm dependencies -- connect...
lodash: updating npm dependencies -- lodash...
Errors prevented bundling:
While building the application:
error: no such package: 'accounts-ui-bootstrap-3'
error: no such package: 'accounts-entry'
While building package `iron-dynamic-template`:
error: no such package: 'blaze'
tar: /app/tmp/cache/bundle.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
! Push rejected, failed to compile Meteor app app
对于部署,我使用了oortcloud的buildpack。这在过去是正常的。 https://github.com/oortcloud/heroku-buildpack-meteorite
在发生错误之前,我对之前的日志条目最感到困惑。这里说它正在安装Meteor 0.8.1.1。之后的几行确认已经安装了Meteor 0.8.3。我很确定这是同样的问题。 https://github.com/EventedMind/iron-dynamic-template/issues/2
Installing Meteor 0.8.1.1
* 'meteor' build tool (vers
* 'meteor' build tool (version 43b8566b9f)
* Package updates: accounts-base accounts-meteor-developer accounts-oauth
accounts-password accounts-ui accounts-ui-unstyled amplify appcache
application-configuration autoupdate browser-policy browser-policy-common
browser-policy-content check coffeescript coffeescript-test-helper ctl
ctl-helper deps ejson email facebook facts follower-livedata force-ssl github
google html-tools htmljs http jquery-waypoints js-analyze less livedata
localstorage logging meetup meteor meteor-developer minifiers minimongo
mongo-livedata oauth oauth-encryption oauth1 oauth2 observe-sequence
reactive-dict routepolicy session showdown spacebars spacebars-compiler
spacebars-tests spiderable srp star-translate stylus templating test-helpers
test-in-browser tinytest twitter ui underscore-tests webapp weibo
Meteor 0.8.3 has been installed in your home directory (~/.meteor).
Now you need to do one of the following:
(1) Add ~/.meteor to your path, or
(2) Run this command as root:
cp ~/.meteor/tools/latest/launch-meteor /usr/bin/meteor
Then to get started, take a look at 'meteor --help' or see the docs at
docs.meteor.com.
我还尝试创建一个新的陨石应用程序来摆脱悬空依赖。但没有成功!
我该怎么办?有没有机会在heroku服务器上调试push / deploy?
答案 0 :(得分:1)
过时的文件.meteor / release导致了这个问题:
git heroku push master 从origin git存储库中提取要部署的文件。它并不关心本地的非分页文件。不知何故, .meteor / release 文件尚未被推送到原始存储库。所以在heroku的安装例程中,流星版本是0.8.1.1而不是0.8.3。