0

Herokuにデプロイしているときに、vendor / pluginsフォルダーに関する一連の非推奨の警告が表示されます(以下を参照)。鉱山には.gitkeepステートメントがあり、他には何もありません。何かする必要がありますか?

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)
4

2 に答える 2

3

Herokuはすでにこれを指摘しており、Rails4ですでに取り組んでいます。

Herokuはプラグインを挿入することで機能し、これが発生します

-----> Rails plugin injection
       Injecting rails_log_stdout
       Injecting rails3_serve_static_assets

Rails2.3スタイルのプラグインとHerokuでタスクを実行している非推奨の警告

于 2012-12-13T17:16:27.160 に答える
0

Herokuの回避策に気づきました。

   Injecting plugin 'rails_log_stdout'
   Injecting plugin 'rails3_serve_static_assets'
   Add 'rails_12factor' gem to your Gemfile to skip plugin injection
于 2013-08-29T18:48:26.200 に答える