Rails 4 - Heroku Sqlite3 error

前端 未结 2 1268
走了就别回头了
走了就别回头了 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:00

    How about this?

    heroku rake db:reset
    heroku rake db:migrate
    
    0 讨论(0)
  • 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?

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