Rails 4 - Heroku Sqlite3 error

前端 未结 2 1269
走了就别回头了
走了就别回头了 2021-01-17 01:11

I\'m having some trouble with Herouku. I can\'t push because of the following error:

Gem files will remain installed in  /tmp/build_2jdec30lsc3bu/vendor/bund         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-17 02:11

    I've had similar problems before. This works for me in my Gemfile:

    gem 'sqlite3', group: [:development, :test]
    gem 'pg', group: [:production]
    

    Also, in your local git checkout, execute the command heroku config. Confirm that the output has the following environment variables set:

    RACK_ENV:                     production
    RAILS_ENV:                    production
    

    Give that a shot. Does it work for you?

提交回复
热议问题