![](/img/trans.png)
[英]Heroku push rejected Rails 3.2.8, bundler cannot continue make sure gem install sqlite3 works
[英]Heroku: Cannot push to Heroku due to gem install bundler
突然之间,我无法推送到Heroku上,并且构建成功,但是在编译时,我看到以下内容:
remote: -----> Build succeeded!
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: sh: 1: gem-install-bundler: not found
remote: sh: 1: gem-install-bundler: not found
remote: !
remote: ! An error occurred while installing ruby-2.2.3-The-latest-bundler-is-1.15.2,-but-you-are-currently-running-1.15.1.-To-update,-run-`gem-install-bundler`
remote: !
remote: ! Heroku recommends you use the latest supported Ruby version listed here:
remote: ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote: !
remote: ! For more information on syntax for declaring a Ruby version see:
remote: ! https://devcenter.heroku.com/articles/ruby-versions
remote: !
remote: !
remote: ! Debug InformationCommand: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-2.2.3-The-latest-bundler-is-1.15.2,-but-you-are-currently-running-1.15.1.-To-update,-run-`gem-install-bundler`.tgz -s -o - | tar zxf - ' failed unexpectedly:
remote: ! bash: gem-install-bundler: command not found
remote: !
remote: ! gzip: stdin: unexpected end of file
remote: ! tar: Child returned status 1
remote: ! tar: Error is not recoverable: exiting now
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
据我所知,我认为我需要更新捆绑软件,因此我将捆绑软件更新为1.15.2版,并尝试再次将其推上去,但是显示了相同的错误。 我的gemfile.lock
甚至说BUNDLED WITH 1.15.2
。
我有什么想念的吗?
我联系了Heroku,他们向我展示了我有多个buildpack:
感谢您就安装红宝石方面的问题与我们联系。 似乎该应用程序为Ruby指定了两次Heroku Buildpack,而后者指定了主版本,而不是发行版本:
$ heroku buildpacks -a app-name
=== app-name Buildpack URLs
1. heroku/ruby
2. https://github.com/heroku/heroku-buildpack-nodejs.git
3. https://github.com/heroku/heroku-buildpack-ruby.git
然后,他们继续向我展示如何解决该问题:
您能否尝试一次指定每个buildpack以及使用发布的版本来查看问题是否持久?
$ heroku buildpacks:remove -i 3 -a app-name
$ heroku buildpacks:remove -i 2 -a app-name
$ heroku buildpacks:remove -i 1 -a app-name
$ heroku buildpacks:add heroku/nodejs -a app-name
$ heroku buildpacks:add heroku/ruby -a app-name
$ git push heroku master
这解决了一切!
您是否将生成的Gemfile.lock检查到版本控制中
git add Gemfile.lock
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.