My app is working locally. I followed the directions regarding Heroku deployment and changing gemfile to:
source 'https://rubygems.org' gem 'rails', '5.1.6' gem 'puma', '3.9.1' gem 'sass-rails', '5.0.6' gem 'uglifier', '3.2.0' gem 'coffee-rails', '4.2.2' gem 'jquery-rails', '4.3.1' gem 'turbolinks', '5.0.1' gem 'jbuilder', '2.7.0' group :development, :test do gem 'sqlite3', '1.3.13' gem 'byebug', '9.0.6', platform: :mri end group :development do gem 'web-console', '3.5.1' gem 'listen', '3.1.5' gem 'spring', '2.0.2' gem 'spring-watcher-listen', '2.0.1' end group :production do gem 'pg', '0.20.0' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
However, I get the error and when I run “$ heroku run rails console” this is the error message I get:
spec' /app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/connection_specification.rb:188:inrescue in spec’: Specified ‘sqlite3’ for database adapter, but the gem is not loaded. Add
gem 'sqlite3' to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
I’m assuming there is something wrong with sqlite3 and I’ve seen the tutorial on Heroku to remove sqlite3 completely in favor of Postgre but I’m not sure if I should do this at this point in the tutorial. Is this ok? I’m going to just move on since it is working locally but if anyone could shed any light I’d be very grateful.