Error loading the 'sqlite3' Active Record adapter. when I deploy in Heroku

后端 未结 5 1143
小鲜肉
小鲜肉 2021-01-26 03:55

I have a problem when I am deploying in Heroku:

/app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:408:in `block (2 levels) in         


        
5条回答
  •  星月不相逢
    2021-01-26 04:35

    Heroku doesn't natively support SQLite3, and although I see you added the pg gem in production, you'll also need to configure your Rails application to load its database from PostgreSQL by editing config/database.yml to connect to PostgreSQL.

提交回复
热议问题