2

我刚刚将我的应用程序更新为流星 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 服务器上调试推送/部署?

4

1 回答 1

1

过时的文件 .meteor/release 导致了问题:

git heroku push master从原始 git 存储库获取要部署的文件。它不关心本地的、未暂存的文件。不知何故,文件.meteor/release没有被推送到原始存储库。因此,在 heroku 的安装例程中,流星版本是 0.8.1.1 而不是 0.8.3。

避免此问题的解决方案:

  • 检查/添加文件.meteor/release.meteor/packages到你的原始 git repo
  • 在部署之前仅测试原始存储库中的内容。使用git 拉
于 2014-08-02T15:25:15.003 回答