21

根据 Heroku 的文档,我已经gem 'newrelic_rpm'在我的 Gemfile 中。当我尝试运行时,我收到以下信息: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)

有想法该怎么解决这个吗?我已经bundle update按照这个 SO 答案尝试过:https : //stackoverflow.com/a/4576816/337903 无济于事。

4

2 回答 2

27

编辑:gem 的 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"
于 2013-02-13T05:12:01.497 回答
0

正如 chrislopresto 提到的,您可能需要做一个

bundle update newrelic_rpm

自从有人建议以来,我将其发布为答案,嘿,版本发生了变化。

于 2013-10-24T00:17:24.253 回答