"sqlite3.h" missing when pushing Rails app to Heroku
gem 'sqlite3', :group => [:development, :test]group :production do gem 'pg'end
- edit
Gemfile
as above - remove
Gemfile.lock
- run
bundle install --without production
git add .
git commit -am "bundle updating sqlite3"
git push heroku master
Heroku uses postgresql so you want to remove sqlite3 or move it into a development group in your Gemfile.
Check you Gemfile.lock for any other gems that may have dependencies on sqlite3, as this can also cause problems.
I had a similar problem and I wasn't even using sqlite3 for anything but after removing it from the gem file I still got that error
what solved it for me was a commit command
git commit -am
that I found on this tutorial