LoginSignup
0
0

More than 5 years have passed since last update.

heroku への push時にエラー:Detected sqlite3 gem which is not supported on Heroku

Last updated at Posted at 2019-02-28

前提

heroku は postgresqlに対応しているため、
herokuのrepositoryへpushする際、
productionのRDBMSとして postgresqlを指定する必要がある。

指定したつもりで

エラー内容

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の全環境用Gemを指定する箇所に、他のRDBMSのgemを記述したままになっていた。

解決策

Gemfile.
- gem 'sqlite3', '~> 1.3.6'
- 
group:development do
+ gem 'sqlite3', '~> 1.3.6'
end
$ bundle install
database.yml
production:
+   adapter: postgresql

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0