2012-04-10 16 views
8

に削除されます可能性の重複:
Rails 2.3-style plugins and deprecation warnings running task in Heroku駆除警告:Rails 2.3形式のプラグインがベンダー/プラグインにあります。サポートはRailsの4.0

私はすくいデシベルを実行しています:移行は私に次の警告を与え、その後中止されます:

$ heroku rake db:migration --trace 
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support forthese 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/Rakefile:7) 
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/Rakefile:7) 
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/Rakefile:7) 
rake aborted! 
Don't know how to build task 'db:migration' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task_manager.rb:49:in `[]' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:115:in`invoke_task' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' 
/app/.bundle/gems/ruby/1.9.1/bin/rake:19:in `load' 
/app/.bundle/gems/ruby/1.9.1/bin/rake:19:in `<main>' 

私がvendor/pluginsフォルダをチェックしたとき、私は.gitkeepと呼ばれるファイルしか見つけられず、空である

答えて

2

vendor/pluginsここでは問題はありませんが、警告のみです。 FYI場合には、人々は質問のタイトルのために検索エンジンからここに到着すると、あなたが(migrationmigrateをしません)シダー・スタック上

+0

表示されているエラーの「問題」は廃止されたものではありませんが、これは重複している可能性のある質問に説明されている廃止メッセージに関する質問(タイトル)です。 –

+0

回答。私はそれが2年前だったと思います - 以下の答えとコメントは、廃止のメッセージには正しいです。 Herokuはプラグインをベンダー/プラグインに注入して、あなたのアプリが英雄スタックで動くようにします。あなたのGemfileにgem 'rails_12factor'を追加すると(下記参照)、これらの警告は削除されます。 – nzifnab

+0

OK、私はこの答えについて論争しているだけですが、この質問の "正しい"答えとしてマーキングして、混乱を招いています。 –

20

いないのであればそれはちょうど、おそらくheroku rake db:migrateheroku run rake db:migrate ...

です。 非推奨警告がプラグインを注入するHerokuのが原因です - この質問にジャレッド・ベックの回答を参照してください。上記のnzifabによって提案されたRails 2.3-style plugins and deprecation warnings running task in Heroku

解決策は根本的な問題のために有効であるが、これは質問のタイトル

で育てられたものではありませんでした
+6

さらにクリックが不要だと思えば。あなたのGemFilesに 'gem 'rails_12factor''を置いてローカルで' bundle install'を実行し、 'git commit -m" herokuの警告コンパイルを修正し、最後に 'git push heroku master'を修正します。 – Annie

1

私が感じることは、 いずれかの宝石に何らかの変更を加え、階層とファイルを "..app/vendor/plugins"フォルダに変更してコピーする必要があります。

この場合、「lib」フォルダにプラグインをコピーする必要があることを伝える警告です。 開発モードでwebrickを起動すると、同じことを確認しておく必要があります。

関連する問題