Heroku rejecting push in mature application (pre-receive hook declined)

后端 未结 5 1054
时光取名叫无心
时光取名叫无心 2021-02-06 12:58

I\'m getting

   FAILED: http://devcenter.heroku.com/articles/bundler

! Heroku push rejected, failed to install gems via Bundler To git@hero

5条回答
  •  后悔当初
    2021-02-06 13:51

    I've just had the same problem, and the following fixed it for me:

    I had a combination of gems grouped by requirement (test, development etc), and some that were used by both e.g.

    group :development do
      gem "hpricot"
      gem "ruby_parser"
      gem "haml-rails", ">= 0.3.4"
    end
    

    and

    gem "rspec-rails", ">= 2.9.0.rc2", :group => [:development, :test]
    

    I deleted the single line ones, and just duplicated them in the relevant blocks (not DRY I know, but what the heck).

    Did a quick Bundle, and hey presto I could push to Heroku again...

提交回复
热议问题