ruby - Error deploying to Heroku (DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins) -


i following error when trying push heroku. works on localhost:3000 , not sure start. removed files in vendor/plugins (worked on localhost) still produced same error when trying upload heroku.

c:\basecode>heroku run rake db:migrate running `rake db:migrate` attached terminal... up, run.9170 deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them n gemfile, or fold them in app lib/myplugin/* , config/initial izers/myplugin.rb. see release notes more on this: http://weblog.rubyonr ails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required )> @ /app/rakefile:4) deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in  gemfile, or fold them in app lib/myplugin/* , config/initial izers/myplugin.rb. see release notes more on this: http://weblog.rubyonr ails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required )> @ /app/rakefile:4) deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them n gemfile, or fold them in app lib/myplugin/* , config/initial izers/myplugin.rb. see release notes more on this: http://weblog.rubyonr ails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required )> @ /app/rakefile:4) ==  createmicroposts: migrating =============================================== -- create_table(:microposts) notice:  create table create implicit sequence "microposts_id_seq" serial         column "microposts.id" notice:  create table / primary key create implicit index "microposts_pkey"   table "microposts" -> 0.0521s -- add_index(:microposts, [:user_id, :created_at]) -> 0.0462s ==  createmicroposts: migrated (0.0987s) ====================================== ==  createrelationships: migrating ============================================ -- create_table(:relationships) notice:  create table create implicit sequence "relationships_id_seq" serial   column "relationships.id" notice:  create table / primary key create implicit index "relationships_pkey"  table "relationships" -> 0.0478s -- add_index(:relationships, :follower_id) -> 0.0440s -- add_index(:relationships, :followed_id) -> 0.0464s -- add_index(:relationships, [:follower_id, :followed_id], {:unique=>true}) -> 0.0484s ==  createrelationships: migrated (0.1876s) =================================== c:\basecode>heroku open opening nameless-tundra-1907... done c:\basecode> 

remove vendor/plugins/.gitkeep (if have one)

git checkout master git rm vendor/plugins/.gitkeep 

add these lines gemfile

group :production   gem 'rails_12factor' end 

run bundle command

bundle install 

commit files gemfile , gemfile.lock

git add gemfile gemfile.lock git commit -m 'added gem rails_12factor avoid warnings on heroku' 

push changes , free of these warnings forever

git push heroku master 

Comments