Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 在heroku中部署时出错_Ruby On Rails_Heroku_Ruby On Rails 3.2 - Fatal编程技术网

Ruby on rails 在heroku中部署时出错

Ruby on rails 在heroku中部署时出错,ruby-on-rails,heroku,ruby-on-rails-3.2,Ruby On Rails,Heroku,Ruby On Rails 3.2,突然我无法上传到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 o

突然我无法上传到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)>'

您应该将以下内容添加到您的文件中:

gem "rake", "!= 0.9.0"

和bundle install

不幸的是,即使在将其添加到我的gemfile并在本地运行bundle install之后,我仍然看到错误。您是否在
gem rake
之前向您的gemfile添加了
require'rake/dsl\u definition'
在定义中“:解析您的Gemfile时出错,我们无法继续(LanguagePack::Helpers::BundlerRapper::GemfileParseError)您的Gemfile中出错,Bundler无法继续。将Gemfile添加到问题中为什么您的Gemfile中有
require
?我以前从未见过这种情况——我认为这是不正确的。
gem "rake", "!= 0.9.0"