Fixing "Detected sqlite3 gem which is not supported on Heroku" when deploying Rails to Heroku

Опубликовано: 16 Октябрь 2024
на канале: Mike Rogers
1,207
19

When I first deployed Rails to Heroku I was greeted with the error:

Failed to install gems via Bundler
Detected sqlite3 gem which is not supported on Heroku:
https://devcenter.heroku.com/articles...

The solution is to use postgres instead of sqlite3, which you can do by running:

bundle exec rails db:system:change --to=postgresql

I hope this helps anyone who runs into this error :)

Chapters

0:00 - The error
0:38 - How to fix it
2:27 - Thank you

Follow Me Online

➡ Blog: https://mikerogers.io/
➡ Twitter:   / mikerogers0  
➡ GitHub: https://github.com/mikerogers0
➡ YouTube:    / mikerogers0  
➡ BuyMeACoffee: https://www.buymeacoffee.com/MikeRogers0
➡ Dev.to: https://dev.to/mikerogers0

#RubyOnRails #Heroku