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

  • Bower install: No versions available
  • How to not include a class file with API strings in git, but still get it on a build server?
  • What is the difference between “py” and “pyc” in .gitignore notation?
  • Git log error in PhpUnderControl continuous integration set up
  • Storing large CSV file with version control
  • Local only, revision/version/source control
  • Using browserify on a static website
  • Moving top two entries from master branch into an existing merged feature branch
  • GIT — Exclude / Ignore Files from commit
  • Importing package from a private Bitbucket repository through composer
  • How safely remove '.' entry from git tree?
  • Can a Git Repository Branch be a sub folder in some other 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’
    end
    

    and also remove gem ‘sqlite3’ OR

    group :development, :test do
      gem 'sqlite3'
    end
    

    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.