How to switch from SQLite3 to Postgres to deploy on Heroku
问题 My initial database is SQLite 3, but heroku doesn't support it and I have to switch to PostgreSQL. I tried to aad the gem in the gemfile, but the deployment still failed. This is my gemfile: source 'https://rubygems.org' gem 'postgres', '~> 0.8.1' group :development, :test do gem 'sqlite3' end This extract from the deployment logs shows what failed: ... Bundled gems are installed into ./vendor/bundle. remote: Post-install message from rdoc: remote: Depending on your version of ruby, you may