When I tried to deploy second part of RoR tutorial to Heroku I get this error:
An error occurred while installing sqlite3 (1.3.5), and Bundler cannot continue.
Make sure that
gem install sqlite3 -v '1.3.5' succeeds before bundling.
! Failed to install gems via Bundler.
! Detected sqlite3 gem which is not supported on Heroku.
! Heroku push rejected, failed to compile Ruby/rails app
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘email@example.com:thawing-beyond-7283.git’
I searched a little bit about this error and find
this stackoverflow post. But when I look more carefully on the Gemfile syntax I found a mistake. I used simply:
But I should have:
group :development do
gem 'sqlite3', '1.3.5'
group :production do
gem 'pg', '0.12.2'
As RoR tutorial states.