Katie H Katie H - 1 year ago 207
Ruby Question

Detected sqlite3 gem which is not supported on Heroku

I'm trying to push my rails app to Heroku, and I keep getting the following error:

An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling.
! Failed to install gems via Bundler.
! Detected sqlite3 gem which is not supported on Heroku.
! https://devcenter.heroku.com/articles/sqlite3

! Push rejected, failed to compile Ruby app

Here is what my gemfile looks like:

group :devlopment, :test do
gem 'sqlite3'

group :production do
gem 'pg'

Any ideas on how to fix this? Any help is much appreciated!

Answer Source

You have a typo:

group :development, :test do # <<<< :development, not devlopment
  gem 'sqlite3'

As heroku ignores development specific gems, when running the bundle it includes sqlite3 gem.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download