5

Powiel możliwe:
eliminating Rails 2.3-style plugins and deprecation warningsSzyny Deprecation ostrzeżenie dla vendor/plugins, kiedy nie ma żadnego

otrzymuję następujący błąd, gdy robię 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> 

Jednak jedynym plikiem, który mam w dostawcy/wtyczkach jest .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 

Próbowałem nawet usunąć plik .gitkeep i nadal otrzymuję to samo ostrzeżenie o przestarzałości. Czy mam złe wtyczki? Jest to stosunkowo nowy projekt Rails.

Odpowiedz

8

Heroku wstrzykuje staroświeckie wtyczki, aby aplikacja działała na swoim serwerze (w szczególności w celu przekierowania dzienników na standardowe wyjście i udostępniania zasobów statycznych z szyn). Sprawdź wyjście z git push ... zobaczysz coś w tym

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

Więc to nie jest coś, co zrobiłeś, a nie jest to nic martwić! Te będą działały dobrze na Railsach 3.x, a Heroku bez wątpienia będzie działać, gdy Rails 4 jest nieco bardziej dojrzały.

Powiązane problemy