2011-08-07 54 views
1

我在Gemfile中Heroku的機架依賴

gem 'rack', :git => 'git://github.com/madhums/rack.git', :branch => 'aesthete'

一切使用rack 1.2.3從我的git回購本地​​工作正常。當我部署到heroku時,出現此錯誤您已激活機架1.1.0,但您的Gemfile需要 機架1.2.3。考慮使用bundle exec。 (寶石:: LoadError)

Starting process with command `thin -p 36127 -e development -R /home/heroku_rack/heroku.ru start 
`/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runtime.rb:27:in 
`block in setup': 

You have already activated rack 1.1.0, but your Gemfile requires rack 1.2.3 
Consider using bundle exec. (Gem::LoadError) 

我相信它的Heroku是使用一些其他的寶石是依賴於機架1.1.0?

我該如何解決這個問題?

回答

0

我認爲你需要在你的Gemfile中加入薄薄的寶石。也許可以工作

gem 'thin' 
+0

不!不要工作! – Madhusudhan