将流星推向heroku错误

时间:2015-10-01 16:54:41

标签: heroku meteor

我正在尝试将流星应用程序推送到heroku,我收到此错误。我正在使用这个buildpack heroku配置:设置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

2 个答案:

答案 0 :(得分:2)

我解决了这个问题。所以我在我的meteor应用程序中安装了ios和android平台,并将heroku config var设置为BUILDPACK_PRELAUNCH_METEOR。

答案 1 :(得分:0)

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

heroku config:设置BUILDPACK_PRELAUNCH_METEOR = 1