git, Heroku: pre-receive hook declined

后端 未结 15 2838
时光取名叫无心
时光取名叫无心 2020-12-09 02:33

I am in the process of setting up a git repository and attempting to link it to Heroku. When I run the command

git push heroku master

I rec

15条回答
  •  攒了一身酷
    2020-12-09 02:44

    Another issue could be that in a production environment, you can't use sqlite3, the default database when you make a rails app.

    In order to fix this, just change the database your rails app uses to Postgres. This can easily be accomplished by editing your Gemfile

    From your Gemfile, remove:

    gem sqlite3;
    

    and add the following:

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

提交回复
热议问题