1
我想部署一個機架應用的Heroku和它的失敗上捆綁步時:捆綁失敗,未定義的方法'紅寶石」部署到Heroku的
-----> Fetching custom git buildpack... done
-----> Ruby/Rack app detected
-----> Using RUBY_VERSION: ruby-1.9.3-p0
-----> Installing dependencies using Bundler version 1.1.rc.7
Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
/tmp/build_158s9o0ec0gdk/Gemfile:2:in `evaluate': undefined method `ruby' for #<Bundler::Dsl:0x00000001c7c418> (NoMethodError)
(...)
/app/bin/bundle:23:in `load'
/app/bin/bundle:23:in `<main>'
There was an error in your Gemfile, and Bundler cannot continue.
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rack app
失敗是undefined method 'ruby' for #<Bundler::Dsl:0x00000001c7c418> (NoMethodError)
這來自我的Gemfile
source 'https://rubygems.org'
ruby '2.0.0'
我以爲它是由一個事實,即該方法中不添加捆紮機,直到1.2版本和Heroku的好像是用版本1.1.rc.7引起的。
我不知道如何升級bundler的heroku版本。我已經在Cedar堆棧上了。
日誌說'獲取自定義git buildpack' - 它看起來像你正在使用自定義的buildpack,這可能解釋爲什麼使用舊版本的Bundler。 'heroku配置:獲取BUILDPACK_URL'顯示什麼? – matt 2013-05-01 19:56:49
你是對的。將其張貼爲答案,並將其標記爲正確。 – 2013-05-01 21:11:17