将 Meteor 应用程序部署到 Heroku Meteor v 1.0.2.1
Deploy Meteor Application to Heroku Meteor v 1.0.2.1
我遵循此 here 中的说明,但在第 6 步中没有使用:
--buildpack https://github.com/oortcloud/heroku-buildpack-meteorite
我正在使用:
--buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git
一切正常,直到我进入第 11 步:
git push heroku master
日志:
Counting objects: 13, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (13/13), 1.97 KiB | 0 bytes/s, done.
Total 13 (delta 0), 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:
remote: Meteor 1.0.2.1 has been installed in your home directory (~/.meteor).
remote:
remote: Now you need to do one of the following:
remote:
remote: (1) Add "$HOME/.meteor" to your path, or
remote: (2) Run this command as root:
remote: cp "/tmp/buildpack_b8184dbff0f82703cfc7c7d1179c360e/meteor- Kgek/.meteor/packages/meteor-tool/1.0.38/meteor-tool-os.linux.x86_64/scripts/admin/launch- meteor" /usr/bin/meteor
remote:
remote: Then to get started, take a look at 'meteor --help' or see the docs at
remote: docs.meteor.com.
remote: -----> Bundling bundle
remote: ios: platform is not in this project
remote: android: platform is not in this project
remote: npm WARN package.json meteor-dev-bundle@0.0.0 No description
remote: npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
remote: npm WARN package.json meteor-dev-bundle@0.0.0 No README data
remote:
remote: > fibers@1.0.1 install /tmp/build_b8184dbff0f82703cfc7c7d1179c360e/.meteor/heroku_build/app/programs/server/node_modules/fibers
remote: > node ./build.js
remote:
remote: `linux-x64-v8-3.14` exists; testing
remote: Binary is fine; exiting
remote: underscore@1.5.2 node_modules/underscore
remote:
remote: semver@4.1.0 node_modules/semver
remote:
remote: eachline@2.3.3 node_modules/eachline
remote: └── type-of@2.0.1
remote:
remote: fibers@1.0.1 node_modules/fibers
remote:
remote: chalk@0.5.1 node_modules/chalk
remote: ├── escape-string-regexp@1.0.2
remote: ├── ansi-styles@1.1.0
remote: ├── supports-color@0.2.0
remote: ├── has-ansi@0.1.0 (ansi-regex@0.2.1)
remote: └── strip-ansi@0.3.0 (ansi-regex@0.2.1)
remote:
remote: source-map-support@0.2.8 node_modules/source-map-support
remote: └── source-map@0.1.32 (amdefine@0.1.0)
remote: -----> Adding PATH environment
remote: -----> Running extras
remote: -----> Adding MONGOHQ_URL -> MONGO_URL env
remote: -----> Adding MONGOLAB_URI -> MONGO_URL env
remote: -----> Installing phantomjs.
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for Node.js -> web
remote:
remote: -----> Compressing... done, 22.1MB
remote: -----> Launching...
remote: ! Push rejected, failure creating release
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to natetest19.
remote:
To https://git.heroku.com/natetest19.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/natetest19.git'
您可能想试试这个:
heroku addons:add mongohq:sandbox
我有一段时间遇到了同样的问题。我尝试了几种不同的构建包,但问题并没有消失。
不过,我通过执行以下操作最终解决了我的问题:
- 删除我的 heroku 项目
- 将我的 git 项目重新克隆到新目录
- 在 https://github.com/jordansissel/heroku-buildpack-meteor
上执行从 "Create your heroku app" 开始的所有步骤
- $$$
我怀疑 heroku 项目中有一些有状态的东西被所有的 buildpack 切换搞砸了。
此外,我应该提到,只有在重新创建我的 heroku 项目后我才设置 ROOT_URL
,所以我想这也可能是问题所在。
我遵循此 here 中的说明,但在第 6 步中没有使用:
--buildpack https://github.com/oortcloud/heroku-buildpack-meteorite
我正在使用:
--buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git
一切正常,直到我进入第 11 步:
git push heroku master
日志:
Counting objects: 13, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (13/13), 1.97 KiB | 0 bytes/s, done.
Total 13 (delta 0), 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:
remote: Meteor 1.0.2.1 has been installed in your home directory (~/.meteor).
remote:
remote: Now you need to do one of the following:
remote:
remote: (1) Add "$HOME/.meteor" to your path, or
remote: (2) Run this command as root:
remote: cp "/tmp/buildpack_b8184dbff0f82703cfc7c7d1179c360e/meteor- Kgek/.meteor/packages/meteor-tool/1.0.38/meteor-tool-os.linux.x86_64/scripts/admin/launch- meteor" /usr/bin/meteor
remote:
remote: Then to get started, take a look at 'meteor --help' or see the docs at
remote: docs.meteor.com.
remote: -----> Bundling bundle
remote: ios: platform is not in this project
remote: android: platform is not in this project
remote: npm WARN package.json meteor-dev-bundle@0.0.0 No description
remote: npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
remote: npm WARN package.json meteor-dev-bundle@0.0.0 No README data
remote:
remote: > fibers@1.0.1 install /tmp/build_b8184dbff0f82703cfc7c7d1179c360e/.meteor/heroku_build/app/programs/server/node_modules/fibers
remote: > node ./build.js
remote:
remote: `linux-x64-v8-3.14` exists; testing
remote: Binary is fine; exiting
remote: underscore@1.5.2 node_modules/underscore
remote:
remote: semver@4.1.0 node_modules/semver
remote:
remote: eachline@2.3.3 node_modules/eachline
remote: └── type-of@2.0.1
remote:
remote: fibers@1.0.1 node_modules/fibers
remote:
remote: chalk@0.5.1 node_modules/chalk
remote: ├── escape-string-regexp@1.0.2
remote: ├── ansi-styles@1.1.0
remote: ├── supports-color@0.2.0
remote: ├── has-ansi@0.1.0 (ansi-regex@0.2.1)
remote: └── strip-ansi@0.3.0 (ansi-regex@0.2.1)
remote:
remote: source-map-support@0.2.8 node_modules/source-map-support
remote: └── source-map@0.1.32 (amdefine@0.1.0)
remote: -----> Adding PATH environment
remote: -----> Running extras
remote: -----> Adding MONGOHQ_URL -> MONGO_URL env
remote: -----> Adding MONGOLAB_URI -> MONGO_URL env
remote: -----> Installing phantomjs.
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for Node.js -> web
remote:
remote: -----> Compressing... done, 22.1MB
remote: -----> Launching...
remote: ! Push rejected, failure creating release
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to natetest19.
remote:
To https://git.heroku.com/natetest19.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/natetest19.git'
您可能想试试这个:
heroku addons:add mongohq:sandbox
我有一段时间遇到了同样的问题。我尝试了几种不同的构建包,但问题并没有消失。
不过,我通过执行以下操作最终解决了我的问题:
- 删除我的 heroku 项目
- 将我的 git 项目重新克隆到新目录
- 在 https://github.com/jordansissel/heroku-buildpack-meteor 上执行从 "Create your heroku app" 开始的所有步骤
- $$$
我怀疑 heroku 项目中有一些有状态的东西被所有的 buildpack 切换搞砸了。
此外,我应该提到,只有在重新创建我的 heroku 项目后我才设置 ROOT_URL
,所以我想这也可能是问题所在。