2012-12-13 43 views
0

在部署到Heroku時,我收到了一組關於vendor/plugins文件夾的棄用警告(請參閱下文)。我有一個.gitkeep聲明,沒有別的。有什麼我需要做的嗎?Rails 2.3風格的插件:爲什麼棄用警告?

2012-12-13T02:56:59+00:00 app[web.1]: 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/config/environment.rb:5) 
2012-12-13T02:56:59+00:00 app[web.1]: 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/config/environment.rb:5) 
2012-12-13T02:56:59+00:00 app[web.1]: 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/config/environment.rb:5) 
+0

[Rails的2.3式的插件和廢棄警告,在Heroku上運行的任務(可能重複http://stackoverflow.com/questions/9027403/rails-2-3-style-plugins-and-deprecation-警告運行的任務 - 在-的Heroku) – matt

回答

0

我只注意到了Heroku現在的解決方法。

Injecting plugin 'rails_log_stdout' 
    Injecting plugin 'rails3_serve_static_assets' 
    Add 'rails_12factor' gem to your Gemfile to skip plugin injection