thể trùng lặp:
Rails 2.3-style plugins and deprecation warnings running task in HerokuCẢNH BÁO TUYỆT VỜI: Bạn có các plugin theo phong cách Rails 2.3 trong nhà cung cấp/plugin! Hỗ trợ sẽ được loại bỏ trong Rails 4.0
Tôi đang chạy rake db: di chuyển mang lại cho tôi những lời cảnh báo sau đây và sau đó hủy bỏ:
$ heroku rake db:migration --trace
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support forthese 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 /app/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 /app/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 /app/Rakefile:7)
rake aborted!
Don't know how to build task 'db:migration'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task_manager.rb:49:in `[]'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:115:in`invoke_task'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/app/.bundle/gems/ruby/1.9.1/bin/rake:19:in `load'
/app/.bundle/gems/ruby/1.9.1/bin/rake:19:in `<main>'
khi tôi kiểm tra thư mục vendor/plugins
Tôi chỉ tìm thấy một tệp có tên là .gitkeep
và trống rỗng
Mặc dù "sự cố" của lỗi được hiển thị không phải là việc không dùng nữa, câu hỏi (tiêu đề) có vẻ như về thông báo không dùng nữa, được giải thích trong câu hỏi có thể sao chép được –
Heh, đừng nhớ việc này câu trả lời. Tôi đoán nó đã được 2 năm trước - Câu trả lời và bình luận dưới đây là chính xác cho thông điệp không dùng nữa. Heroku đưa plugin vào nhà cung cấp/plugin để ứng dụng của bạn có thể hoạt động trên ngăn xếp heroku. Thêm đá quý 'rails_12factor' vào Gemfile của bạn (như đã lưu ý bên dưới) sẽ loại bỏ các cảnh báo này. – nzifnab
OK, tôi chỉ tranh luận về câu trả lời này được đánh dấu là câu trả lời "đúng" cho câu hỏi này, làm cho một số nhầm lẫn. –