2014-01-29 184 views
0

突然我無法上傳到heroku。在heroku中部署錯誤

-----> Preparing app for Rails asset pipeline 
     Running: rake assets:precompile 
     DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_e6f36939-9348-46b4-899f-19f7b9f8d427/Rakefile:7) 
     DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_e6f36939-9348-46b4-899f-19f7b9f8d427/Rakefile:7) 
     rake aborted! 
     uninitialized constant Rake::DSL 
     /tmp/build_e6f36939-9348-46b4-899f-19f7b9f8d427/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/lib/rake/tasklib.rb:8:in `<class:TaskLib>' 
     /tmp/build_e6f36939-9348-46b4-899f-19f7b9f8d427/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/lib/rake/tasklib.rb:6:in `<module:Rake>' 
     /tmp/build_e6f36939-9348-46b4-899f-19f7b9f8d427/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/lib/rake/tasklib.rb:3:in `<top (required)>' 
     /tmp/build_e6f36939-9348-46b4-899f-19f7b9f8d427/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/lib/rake/testtask.rb:4:in `<top (required)>' 
     /tmp/build_e6f36939-9348-46b4-899f-19f7b9f8d427/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/test_unit/testing.rake:2:in `<top (required)>' 

的Gemfile:

source 'https://rubygems.org' 


ruby '1.9.2' 


gem 'rails', '3.2.8' 

require 'rake/dsl_definition' 
gem "rake", "!= 0.9.0" 

# Bundle edge Rails instead: 
# gem 'rails', :git => 'git://github.com/rails/rails.git' 




gem 'devise' 
gem 'simple_form' 
gem 'geocoder' 
gem "paperclip", "~> 3.0" 
gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby' 


group :development do 
    gem 'sqlite3' 
end 


group :staging, :production do 
    gem 'pg' 
    gem 'aws-sdk' 
end 




# Gems used only for assets and not required 
# in production environments by default. 
group :assets do 
    gem 'sass-rails', '~> 3.2.3' 
    gem 'coffee-rails', '~> 3.2.1' 

    # See https://github.com/sstephenson/execjs#readme for more supported runtimes 
    # gem 'therubyracer', :platforms => :ruby 

    gem 'uglifier', '>= 1.0.3' 
end 

gem 'jquery-rails' 

回答

0

你應該添加到您的Gemfile:

gem "rake", "!= 0.9.0" 

和捆綁安裝

+0

不幸的是我仍然看到錯誤,甚至添加後到我的Gemfile和在本地運行軟件包安裝 – Ayrad

+0

您是否在您的Gemfile中添加了'require'rake/dsl_definition''寶貝耙子? – titibouboul

+0

我現在做了,但我得到一個新的錯誤/app/tmp/buildpacks/ruby/lib/language_pack/helpers/bundler_wrapper.rb:90:in'rescue in definition':解析Gemfile時出錯,我們無法繼續( LanguagePack :: Helpers :: BundlerWrapper :: GemfileParseError) 您的Gemfile發生錯誤,Bundler無法繼續。 – Ayrad