簡體   English   中英

由於New Relic RPM gem,Heroku推動失敗

[英]Heroku push failing due to New Relic RPM gem

根據Heroku的文檔 ,我的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 updatehttps//stackoverflow.com/a/4576816/337903無濟於事。

編輯: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"

正如chrislopresto所提到的,你可能需要做一個

bundle update newrelic_rpm

我發布這個作為答案,因為它被建議,嘿,版本改變。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM