前提・実現したいこと
Railsを使用してアプリを作成しているのですが、それをHerokuへデプロイする際に、エラーがでてしまいデプロイすることができませせん。
発生している問題・エラーメッセージ
git push heroku app を入力すると
remote: ! Failed to install gems via Bundler.
remote: ! Detected sqlite3 gem which is not supported on Heroku:
remote: ! https://devcenter.heroku.com/articles/sqlite3
のエラーがでてしまいす。
Gemfileは以下です。
Ruby
1source 'https://rubygems.org' 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby '2.6.3' 5 6# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 7gem 'rails', '~> 5.2.3' 8# Use sqlite3 as the database for Active Record 9 10# Use Puma as the app server 11gem 'puma', '~> 3.11' 12# Use SCSS for stylesheets 13gem 'sass-rails', '~> 5.0' 14# Use Uglifier as compressor for JavaScript assets 15gem 'uglifier', '>= 1.3.0' 16# See https://github.com/rails/execjs#readme for more supported runtimes 17# gem 'mini_racer', platforms: :ruby 18 19# Use CoffeeScript for .coffee assets and views 20gem 'coffee-rails', '~> 4.2' 21# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 22gem 'turbolinks', '~> 5' 23# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 24gem 'jbuilder', '~> 2.5' 25# Use Redis adapter to run Action Cable in production 26# gem 'redis', '~> 4.0' 27# Use ActiveModel has_secure_password 28# gem 'bcrypt', '~> 3.1.7' 29 30# Use ActiveStorage variant 31# gem 'mini_magick', '~> 4.8' 32 33# Use Capistrano for deployment 34# gem 'capistrano-rails', group: :development 35 36# Reduces boot times through caching; required in config/boot.rb 37gem 'bootsnap', '>= 1.1.0', require: false 38 39group :development, :test do 40 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 41 gem 'sqlite3' 42 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 43end 44 45group :development do 46 # Access an interactive console on exception pages or by calling 'console' anywhere in the code. 47 gem 'web-console', '>= 3.3.0' 48 gem 'listen', '>= 3.0.5', '< 3.2' 49 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 50 gem 'spring' 51 gem 'spring-watcher-listen', '~> 2.0.0' 52end 53 54group :production do 55 gem 'pg' 56end 57 58group :test do 59 # Adds support for Capybara system testing and selenium driver 60 gem 'capybara', '>= 2.15' 61 gem 'selenium-webdriver' 62 # Easy installation and use of chromedriver to run system tests with Chrome 63 gem 'chromedriver-helper' 64end 65 66# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 67gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 68
Sqlite3を本番環境に入れないようにしているのですが同様のエラーが発生してしまいます。
試したこと
1. database.ymlの変更
2.Gemファイルからsqliteの完全削除
3.bundle install --withou prodction
上記を全て試しましたがエラーは変わりません。よろしくお願いします。
あなたの回答
tips
プレビュー