5

Duplicar posible:
eliminating Rails 2.3-style plugins and deprecation warningsrieles Deprecation advertencia para los proveedores/plugins cuando no tengo ninguna

me sale el siguiente error cuando hago un heroku run console:

$ heroku run console 
Running `console` attached to terminal... up, run.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 an d 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) 

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 an d 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) 

Connecting to database specified by DATABASE_URL 
Loading production environment (Rails 3.2.8) 
irb(main):001:0> 

Sin embargo, el único archivo que tengo en el proveedor/complementos es .gitkeep:

$ ls -lha vendor/plugins/ 
total 0 
drwxr-xr-x 1 Scott Administ  0 Sep 7 12:26 . 
drwxr-xr-x 1 Scott Administ  0 Sep 7 12:26 .. 
-rw-r--r-- 1 Scott Administ  0 Sep 7 12:26 .gitkeep 

Incluso he intentado eliminar el archivo .gitkeep y sigo teniendo el mismo aviso de desaprobación. ¿Tengo plugins malos? Este es un proyecto de Rails relativamente nuevo.

Respuesta

8

Heroku inyecta plugins de estilo antiguo para hacer que su aplicación funcione en su servidor (específicamente para redirigir registros a stdout, y para servir activos estáticos de los rieles). Compruebe la salida de un git push ... verá algo como esto

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

Así que no es algo que has hecho, y tampoco es nada de qué preocuparse! Estos funcionarán perfectamente en Rails 3.x y Heroku sin dudas resolverá algo cuando Rails 4 sea un poco más maduro.

Cuestiones relacionadas