Heroku / Bundler / Push issue:在任何一个来源中都找不到回扣-0.8.7

时间:2022-12-14 20:39:02

For the life of me I can not figure out how to fix this issue. I have looked around for the whole day and found simular issues but they all seem to be slightly different.

对于我的生活,我不知道该如何解决这个问题。我环顾了一整天,发现了一些简单的问题,但它们似乎都略有不同。

-----> Heroku receiving push
-----> Rails app detected
-----> Configure Rails to log to stdout
   Installing rails_log_stdout... done
-----> Gemfile detected, running Bundler version 1.0.7
   Unresolved dependencies detected; Installing...
   Using --without development:test
   Your Gemfile doesn't have any sources. You can add one with a line like 'source:rubygems'
   Could not find rake-0.8.7 in any of the sources
   FAILED: http://docs.heroku.com/bundler
!     Heroku push rejected, failed to install gems via Bundler

error: hooks/pre-receive exited with error code 1
To git@heroku.com:smooth-wind-620.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:

Bundle install and bundle list both have rake listed.

Bundle install和Bundle list都列出了rake。

1 个解决方案

#1


1  

Have you tried adding something like source 'http://rubygems.org' to the top of your Gemfile, or source :gemcutter? That's the first error I see heroku giving you and would be the first thing I would try to resolve.

您是否尝试过在Gemfile的顶部添加source 'http://rubygems.org'或source:gemcutter?这是我看到heroku给你的第一个错误,这是我想要解决的第一件事。

#1


1  

Have you tried adding something like source 'http://rubygems.org' to the top of your Gemfile, or source :gemcutter? That's the first error I see heroku giving you and would be the first thing I would try to resolve.

您是否尝试过在Gemfile的顶部添加source 'http://rubygems.org'或source:gemcutter?这是我看到heroku给你的第一个错误,这是我想要解决的第一件事。