Error when pushing to Heroku on my_first_rails_project


#1

When I run: git push heroku master
after running: heroku buildpacks:set htps://github.com/bundler/heroku-buildpack-bundler2

it shows me this error in the output:
remote: ! Failed to install gems via Bundler.
remote: ! Detected sqlite3 gem which is not supported on Heroku:
remote: ! https://devcenter.heroku.com/articles/sqlite3
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy…
remote:
remote: ! Push rejected to morning-plateau-10464.
remote:
To htps://git.heroku.com/morning-plateau-10464.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘https://git.heroku.com/morning-plateau-10464.git

how can I solve this?


#2

Looks like it’s detecting the sqlite3 gem which isn’t supported. Did you move that gem to the development and test groups in your Gemfile and commit that to git?