我有/ javascript和/ plugins的供应商目录/ directgory,但它们都是空的,所以我也删除了它们。
我做了git add --all并推送删除但我仍然收到警告信息:
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 /tmp/build_97dea2eb
-3f5c-4dc6-9455-2f0aa0cab7de/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 /tmp/build_97dea2eb
-3f5c-4dc6-9455-2f0aa0cab7de/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 /tmp/build_97dea2eb
-3f5c-4dc6-9455-2f0aa0cab7de/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 the
m 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 /tmp/build_97dea2eb
-3f5c-4dc6-9455-2f0aa0cab7de/Rakefile:7)
答案 0 :(得分:1)
如果您使用的是Rails 3,那么Heroku会在部署时将插件注入您的代码 - 您可以通过添加
来防止这种情况发生gem rails_12factor
到您的gemfile,捆绑,提交和重新发送。记录在案here
答案 1 :(得分:0)
什么是
git ls-files vendor/*
显示?如果它显示那里的文件,那么你仍然有文件。