Heroku does not accept push even though I have sqlite in development block

后端 未结 2 939
庸人自扰
庸人自扰 2021-01-11 10:45

I have the following lines in my Gemfile:

gem \'rails\', \'3.1.1\'

group :production do
  gem \'pg\'
end        

group :development, :test do
         


        
相关标签:
2条回答
  • 2021-01-11 11:17

    Hoppla. I made quite a silly mistake here. I was currently working on a branch but I pushed the master branch to Herokum, like I was used to.

    So git push heroku master did push an old version of the branch, which did of course not contain my changes to the Gemfile.

    0 讨论(0)
  • 2021-01-11 11:19

    I had sqlite3 in development block, but I had recently installed mailcatcher, a useful gem to catch sent emails and display them to you in your browser.

    mailcatcher has sqlite3 as a dependency. Moving it back where it belongs fixed the problem:

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

    If you have this error but are sure you do not include sqlite3 outside of the development mode, look for other gem requiring it.

    0 讨论(0)
提交回复
热议问题