gpt4 book ai didi

git - 将 Meteor 应用程序部署到 Heroku Meteor v 1.0.2.1

转载 作者:太空狗 更新时间:2023-10-29 14:18:54 25 4
gpt4 key购买 nike

我正在按照此 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 项目中有一些有状态的东西被所有的 buildpack 切换搞砸了。

另外,我应该提到,只有在重新创建我的 heroku 项目后,我才设置了 ROOT_URL,所以我想这也可能是问题所在。

关于git - 将 Meteor 应用程序部署到 Heroku Meteor v 1.0.2.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27791100/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com