5

Mögliche Duplizieren:
eliminating Rails 2.3-style plugins and deprecation warningsRails deprecation Warnung für Verkäufer/Plugins, wenn ich keine

ich folgende Fehlermeldung erhalten, wenn ich einen 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> 

Die einzige Datei, die ich in Vendor/Plugins habe, ist .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 

Ich habe sogar versucht, die .gitkeep Datei zu entfernen und ich immer noch die gleiche deprecation Warnung. Habe ich schlechte Plugins? Dies ist ein relativ neues Rails-Projekt.

Antwort

8

Heroku injiziert Plugins im alten Stil, damit Ihre App auf ihrem Server funktioniert (speziell um Logs auf stdout umzuleiten und statische Ressourcen von Rails zu versorgen). Überprüfen Sie die Ausgabe von einem git push ... Sie so etwas wie dieses

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

So ist es nicht etwas, was Sie getan haben, sehen werden, und noch ist es etwas zu befürchten! Diese werden gut auf Rails 3.x funktionieren und Heroku wird zweifellos etwas ausarbeiten, wenn Rails 4 ein bisschen reifer ist.

Verwandte Themen