Gem Sqlite3 Failing when Pushed to Heroku


#1

remote: !
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 floating-reaches-12247.
remote:
To https://git.heroku.com/floating-reaches-12247.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘https://git.heroku.com/floating-reaches-12247.git

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.


#2

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


#3

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

group :development, :test do
gem ‘sqlite3’
end

group :production do
gem ‘pg’
end

Then sved


#4

@CouchofTomato all good. I got it to work.