2012-06-11 181 views
0

我在heroku部分遇到了一個問題,並卡在這裏。以下是我輸入的命令和結果。我使用railsinstaller在rails上安裝了ruby。git push heroku master

C:\Sites\rails_projects\first_app>git push heroku master 
Counting objects: 64, done. 
Delta compression using up to 8 threads. 
Compressing objects: 100% (51/51), done. 
Writing objects: 100% (64/64), 26.12 KiB, done. 
Total 64 (delta 3), reused 0 (delta 0) 

-----> Heroku receiving push 
-----> Ruby/Rails app detected 
-----> Installing dependencies using Bundler version 1.2.0.pre 
     Running: bundle install --without development:test --path vendor/bundle - 
-binstubs bin/ 
     Fetching gem metadata from https://rubygems.org/......... 
     Bundler could not find compatible versions for gem "railties": 
     In Gemfile: 
     rails (= 3.2.1) ruby depends on 
     railties (= 3.2.1) ruby 
     jquery-rails (= 2.0.0) ruby depends on 
     railties (3.2.5) 

! 
!  Failed to install gems via Bundler. 
! 
!  Heroku push rejected, failed to compile Ruby/rails app 

To [email protected]:empty-fire-5502.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:empty-fire-5502.git' 
+0

你能追加你的Gemfile嗎?看來你的rails版本之間有衝突。你有一些需要rails 2.3.1,然後rails 3.2.5。這個錯誤是說你必須從本質上選擇一個。 –

回答

0

有一個 'railties' 寶石依賴性衝突。它試圖加載同一個寶石的不同版本。

如果您在您的Gemfile中指定了'railties'寶石,請嘗試刪除它。它已包括在您指定'導軌'寶石。

此外,這個問題看起來類似於你的問題bundle install problem