2011-07-13 51 views
0

我ROR應用在軌道上運行2.3.5(需要機架1.0.1), 薄在Heroku默認激活機架1.1.0heroku上,薄機架1.1.0,Gemfile中需要機架1.0.1

並拋出錯誤:

" You have already activated rack 1.1.0, but your Gemfile requires rack 1.0.1. Consider using bundle exec." 

    my Gemfile: 

source 'http://rubygems.org' 


group :test, :development do 
    gem "rack","1.0.1" 
end 

gem "rails","2.3.5" 
gem "mysql" 
gem "rake", "0.8.3" 
gem "declarative_authorization", "0.5.2" 
gem "searchlogic" 
gem "prawn", "0.6.3" 
gem "thin","1.2.11" 

group :test, :development do 
    gem "rack","1.0.1" 
end 


group :development do 
    # bundler requires these gems in development 
    # gem "rails-footnotes" 
end 

group :test do 
    # bundler requires these gems while running tests 
    # gem "rspec" 
    # gem "faker" 
end 
---------------------- 

我安裝了捆綁和發展Gemfile.lock的:

GEM 
     remote: http://rubygems.org/ 
     specs: 
     actionmailer (2.3.5) 

      actionpack (= 2.3.5) 
     actionpack (2.3.5) 
      activesupport (= 2.3.5) 
      rack (~> 1.0.0) 
     activerecord (2.3.5) 
      activesupport (= 2.3.5) 
     activeresource (2.3.5) 
      activesupport (= 2.3.5) 
     activesupport (2.3.5) 
     daemons (1.1.4) 
     declarative_authorization (0.5.2) 
     eventmachine (0.12.10) 
     mysql (2.8.1) 
     prawn (0.6.3) 
      prawn-core (>= 0.6.3, < 0.7) 
      prawn-format (>= 0.2.3, < 0.3) 
      prawn-layout (>= 0.3.2, < 0.4) 
      prawn-security (>= 0.1.1, < 0.2) 
     prawn-core (0.6.3) 
     prawn-format (0.2.3) 
      prawn-core 
     prawn-layout (0.3.2) 
     prawn-security (0.1.1) 
     rack (1.0.1) 
     rails (2.3.5) 
      actionmailer (= 2.3.5) 
      actionpack (= 2.3.5) 
      activerecord (= 2.3.5) 
      activeresource (= 2.3.5) 
      activesupport (= 2.3.5) 
      rake (>= 0.8.3) 
     rake (0.8.3) 
     searchlogic (2.4.28) 
      activerecord (>= 2.0.0) 
     thin (1.2.11) 
      daemons (>= 1.0.9) 
      eventmachine (>= 0.12.6) 
      rack (>= 1.0.0) 

    PLATFORMS 
     ruby 

    DEPENDENCIES 
     declarative_authorization (= 0.5.2) 
     mysql 
     prawn (= 0.6.3) 
     rack (= 1.0.1) 
     rails (= 2.3.5) 
     rake (= 0.8.3) 
     searchlogic 
     thin (= 1.2.11) 
    --------------------------- 

請幫我將其部署在Heroku ........

回答

0

解決它......

我的應用程序使用的機架1.0.1,2.3.5軌道

和Heroku的默認激活耙1.1.0 ..

所以我換我的Rails應用程序版本到2.3.11它採用機架1.1.2在environment.rb中,創造了一個寶石文件, 安裝捆綁

我的筆記本電腦進行測試......

生成的鎖定文件,並將其推到Heroku的...

終於摸索....

花了一個星期讓我的應用程序的工作...

:)

相關問題