Not able to create staging instance on heroku

This question already has an answer here:

  • Errors of pushing rails app to Heroku error occurred while installing sqlite3, and Bundler cannot continue [duplicate]

    3 answers

  • Merging git notes when there are merge conflicts in them
  • What are the best practices for tagging Docker Hub versions
  • Can “git fetch” be told not to use “git upload-pack” for local repositories?
  • editing git patch gives “Your edited hunk does not apply”
  • Git how to commit a single staged files?
  • Sync between laptop and PC for eclipse projects
  • Using .gitignore to ignore everything but specific directories
  • Using the pre-commit hook to clean code
  • Compile Email application from AOSP
  • What is a Git Revision Expression?
  • Does git need to be present on a server to use it?
  • Why does Xcode 4 continually display “Checking source control status” for a git repository?
  • 2 Solutions collect form web for “Not able to create staging instance on heroku”

    In your Gemfile

    group :production do
      gem 'pg', '0.17.1'
      gem 'rails_12factor', '0.0.2’

    and also remove gem ‘sqlite3’ OR

    group :development, :test do
      gem 'sqlite3'

    Because heroku can’t install the sqlite3 gem. But you can tell bundler that it shouldn’t be trying to except when developing.

    Then run bundle install and try to deploy on Heroku.

    Heroku does not support sqlite3 database, so you can NOT install sqlite3 gem on Heroku environment. as mentioned in this article, Heroku recommend to use Postgresql as production database.

    So, all you need to do is to follow the instruction in that article and replace your sqlite3 gem with pg gem, then do some db configuration.

    Git Baby is a git and github fan, let's start git clone.