2017-07-17 35 views
0

突然我不能推到的Heroku的,我去那裏,並已經成功了點,但隨後在編譯我看到以下內容:的Heroku:不能推到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

有什麼我失蹤?

+0

您正在運行哪個Heroku堆棧? – srt32

回答

1

我伸出Heroku的,他們給我看,我有多個buildpacks:

感謝您與我們周圍有關問題安裝紅寶石。 看來,該應用的Heroku Buildpack對Ruby後者指定主版本,而不是發佈 版本指定了兩次, :

$ 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 

,這解決了一切!

0

你檢查所產生的Gemfile.lock的版本控制

git add Gemfile.lock