【问题标题】:Pushing meteor to heroku error将流星推到heroku错误
【发布时间】:2015-12-29 19:42:52
【问题描述】:

我正在尝试将流星应用程序推送到 heroku,但出现此错误。我正在使用这个 buildpack heroku config:set BUILDPACK_URL=https://github.com/lirbank/meteor-buildpack-horse.git

git push heroku master
Counting objects: 268, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (254/254), done.
Writing objects: 100% (268/268), 3.84 MiB | 388.00 KiB/s, done.
Total 268 (delta 81), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
remote: -----> Node.js app detected
remote: -----> Installing node
remote: -----> Installing meteor
remote: Downloading Meteor distribution
remote: ################################# 100.0%
remote: Meteor 1.2.0.2 has been installed in your home directory (~/.meteor).
remote:
remote: Now you need to do one of the following:
remote:   (1) Add "$HOME/.meteor" to your path, or
remote:   (2) Run this command as root:
remote:         cp "/tmp/buildpack_de3e5x8d2f97747we2s5fb78436762066/meteor-      fkUa/.meteor/packages/meteor-tool/1.1.9/mt-os.linux.x86_64/scripts/admin/launch-   meteor" /usr/bin/meteor
remote: Then to get started, take a look at 'meteor --help' or see the docs at
remote: docs.meteor.com.
remote: -----> Bundling bundle
remote:
remote:
remote: While removing platforms:
remote: error: ios: platform is not in this project
remote: error: android: platform is not in this project
remote:
remote:
remote:  !     Push rejected, failed to compile Node.js app
remote:
remote: Verifying deploy....
remote:
remote: !   Push rejected

【问题讨论】:

  • 不知道 buildpack 做了什么,但这与从 1.2 开始,meteor 不再提供 ios 和 android 平台 (sdks) 本身这一事实有关。它使用系统提供的安装代替。我的钱花在了这个 buildpack 上,但我还不知道,并在 .meteor 文件夹中寻找 sdk ......只是猜测。
  • 我认为这可能是问题所在,我可以使用其他方法或 buildpack 吗?

标签: heroku meteor


【解决方案1】:

我解决了这个问题。因此,我将 ios 和 android 平台都安装到了我的流星应用程序中,并将 heroku config var 设置为 BUILDPACK_PRELAUNCH_METEOR。

【讨论】:

    【解决方案2】:

    谢谢,它对我很有用。 我在同一个文件夹中有一个 webapp 和 android 应用程序。 确切的命令行是:

    heroku 配置:设置 BUILDPACK_PRELAUNCH_METEOR=1

    【讨论】:

    • 嗨!请注意,SO 并不完全像一个论坛。以上不是answer,而是comment。一旦您获得更多声誉,您就可以评论其他人的帖子。您还可以通过upvoting来感谢人们。
    猜你喜欢
    • 2013-08-09
    • 2015-06-06
    • 1970-01-01
    • 2013-12-25
    • 2013-06-11
    • 2014-09-24
    • 2017-05-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多