我已經在我的Gemfile中註釋了鋤頭,我的rubygems版本是2.0+。這是我運行時的輸出git push heroku master
:試圖部署到heroku,在安裝鋤頭時爆炸
Installing json (1.7.7)
Installing rdoc (3.12.1)
Installing thor (0.17.0)
Installing railties (3.2.12)
Installing coffee-rails (3.2.2)
Installing commonjs (0.2.6)
Installing formtastic (2.2.1)
Installing formtastic-bootstrap (2.0.0)
Installing hoe (3.5.0)
Gem::InstallError: hoe requires RubyGems version >= 1.4. Try 'gem update --system' to update RubyGems itself.
An error occurred while installing hoe (3.5.0), and Bundler cannot continue.
Make sure that `gem install hoe -v '3.5.0'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
To [email protected]:limitless-river-5139.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:limitless-river-5139.git'
感謝您的任何建議。
它是安裝鋤頭還是依賴另一個寶石? – jahrichie
呃,它是耙子的幫手,但我不認爲它是必需的。 –
不要安裝鋤頭。它不可能在生產中需要。 – kch