根据Heroku的documentation,我的Gemfile中有gem 'newrelic_rpm'
。当我尝试运行git push heroku master
时,我会收到以下内容:
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.3.0.pre.5
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Could not find newrelic_rpm-3.5.6.46 in any of the sources
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
To git@heroku.com:reponame.git
! [remote rejected] master -> master (pre-receive hook declined)
有关如何解决此问题的任何想法?我已按照此SO回答尝试bundle update
:https://stackoverflow.com/a/4576816/337903无效。
答案 0 :(得分:27)
编辑:3.5.8.72的宝石已经发布@thanks Chris
似乎Bundler Dependency API存在问题。
newrelic_rpm-3.5.6.46于2013年1月22日被淘汰。但API仍在请求。
将gemfile锁定到当前版本将同时修复此问题。
gem "newrelic_rpm", "~> 3.5.5.38"
答案 1 :(得分:0)
正如chrislopresto所提到的,你可能需要做一个
bundle update newrelic_rpm
我发布这个作为答案,因为它被建议,嘿,版本改变。