2011-08-07 26 views
2

我正在嘗試將我的RoR 3.1.0.beta1項目從我的Git存儲庫推到Heroku,像往常一樣使用以下命令: git push heroku masterHeroku推送錯誤:「在任何來源的鏈輪-2.0.0.beta.2」

但我收到以下錯誤:

-----> Heroku receiving push 
-----> Rails app detected 
-----> Detected Rails is not set to serve static_assets 
     Installing rails3_serve_static_assets... done 
-----> Configure Rails 3 to disable x-sendfile 
     Installing rails3_disable_x_sendfile... done 
-----> 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 
     Fetching source index for http://rubygems.org/ 
     Could not find sprockets-2.0.0.beta.2 in any of the sources 
     FAILED: http://devcenter.heroku.com/articles/bundler 
!  Heroku push rejected, failed to install gems via Bundler 

我的Gemfile有這樣一行: gem 'sprockets', '2.0.0.beta.2'

鏈輪版本2.0.0.beta.2存在,因爲我一直在拉不同的版本包括取決於此版本。有什麼我在這裏失蹤?

感謝

+0

沒有這三個答案的爲你工作? – oliverbarnes

回答

0

它不是RubyGems的,因爲:

enter image description here

你需要從找出源你得到的寶石,並添加到您的寶石文件中,像這樣的頂部:

source 'http://rubygems.org' 

gem 'rails', '3.0.5' 
gem 'sqlite3' 
gem 'sprockets', '2.0.0.beta.2' 

gem "sprockets", "~> 1.0.2"是紅寶石寶石。但是您需要找到您的版本是專門託管的,例如http://mysite.org將其添加到您的gemfile的頂部。

0

想必你已經從Sprockets Git Repo拉。你需要告訴你的Gemfile中,你得到的寶石,這不是在RubyGems的,所以在這種情況下,你可以使用:

gem 'sprockets', '2.0.0.beta.2', :git => 'git://github.com/sstephenson/sprockets.git'