首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将meteor/meteorite 0.8.3部署到heroku

将meteor/meteorite 0.8.3部署到heroku
EN

Stack Overflow用户
提问于 2014-08-02 01:32:31
回答 1查看 362关注 0票数 2

我刚刚把我的应用更新到了meteor 0.8.3。它在本地运行时没有问题。但是当我尝试将它推送到heroku时,我会得到以下错误:

代码语言:javascript
复制
   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

代码语言:javascript
复制
 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服务器上调试推送/部署?

EN

回答 1

Stack Overflow用户

发布于 2014-08-02 23:25:15

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

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

避免此问题的解决方案:

  • 检查/添加文件.meteor/release和.meteor/包到原始git存储库
  • 在部署之前只测试原始存储库中的内容。使用git pull
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25085652

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档