2

通常どおり次のコマンドを使用して、RoR3.1.0.beta1プロジェクトをGitリポジトリからHerokuにプッシュしようとしています。 git push heroku master

しかし、次のエラーが発生します。

-----> 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'

Sprocketsバージョン2.0.0.beta.2が存在するのは、このバージョンを含むさまざまなバージョンをプルしているためです。ここに欠けているものはありますか?

ありがとう

4

3 に答える 3

1

このバージョンはRubygemsから取得されたようで、beta.12とbeta.13のみがリストされています。

http://rubygems.org/gems/sprockets

したがって、Thariqが示唆しているように、リポジトリから特定のbeta.2ブランチを取得する必要があります。

しかし、私はおそらくrubygemsにリストされているバージョンの1つを選ぶでしょう-それらが引っ張られたのには十分な理由があるに違いありません;)

于 2011-08-08T15:34:31.880 に答える
0

それはrubygemsにはありません。理由は次のとおりです。

ここに画像の説明を入力してください

gemを取得しているソースを把握し、次のようにgemファイルの先頭に追加する必要があります。

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

于 2011-08-07T01:07:07.807 に答える
0

おそらく、SprocketsGitRepoからプルしているでしょう。Rubygemsにないgemをどこで入手するかをGemfileに伝える必要があるため、この場合は次を使用します。

gem 'sprockets', '2.0.0.beta.2', :git => 'git://github.com/sstephenson/sprockets.git'
于 2011-08-07T01:17:40.793 に答える