`gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) (LoadError)

If you see this error in your heroku logs “`gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.”


/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.0.pre.2/lib/bundler/rubygems_integration.rb:177:in `block in replace_gem': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) (LoadError)

Then you must add this to your production section of your Gemfile or create it if you don’t have one:


group :production do
gem 'therubyracer-heroku', '0.8.1.pre3'
gem 'pg'
end

VN:F [1.9.22_1171]
Rating: 2.5/5 (2 votes cast)
VN:F [1.9.22_1171]
Rating: -1 (from 1 vote)
`gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) (LoadError), 2.5 out of 5 based on 2 ratings
Facebook Twitter Email

Leave a Reply