Gem Sqlite3 Failing when Pushed to Heroku


remote: !
remote: ! Failed to install gems via Bundler.
remote: ! Detected sqlite3 gem which is not supported on Heroku:
remote: !
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote: ! Push failed
remote: Verifying deploy…
remote: ! Push rejected to floating-reaches-12247.
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘

I found a previous forum topic around this and tried that workaround but not luck.

I followed the steps listed very close with the exception i did not use VScode, but rather Atom. the file saved correctly nevertheless.


You can’t use sqlite on heroku. Did you add the pg gem properly?


@CouchofTomato I opened the gemfile deleted the “sqlite3” line and added

group :development, :test do
gem ‘sqlite3’

group :production do
gem ‘pg’

Then sved


@CouchofTomato all good. I got it to work.