Heroku deployment failed because of sqlite3 gem error

后端 未结 5 1832
太阳男子
太阳男子 2020-11-28 13:45

I just started the ruby.railstutorial.org book by Michael Hartl and have been working through the first chapter. I am using mac book OS X, Terminal, and Sublime Text. Every

5条回答
  •  心在旅途
    2020-11-28 14:17

    Heroku can't install the sqlite3 gem, for whatever reason. But you can tell bundler that it shouldn't be trying to except when developing.

    In your Gemfile, replace gem 'sqlite3' with:

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

    Then bundler on heroku, running as production, won't try to install it.

提交回复
热议问题