Error pushing Ruby on Rails to heroku

前端 未结 2 526
遇见更好的自我
遇见更好的自我 2021-01-28 01:05

I have added the pg and rails_12factor gem to my gemfile and tried to push my app to heroku but the website just says application error, I was able to do this successfully a few

2条回答
  •  走了就别回头了
    2021-01-28 01:57

    You must specify a specific pg version in your gemfile. If not, you will be using the latest available version (1.0.0). But this version is still not supported by Rails. Check here: https://github.com/rails/rails/issues/31673

    Yous should use version 0.21

    gem 'pg', '0.21'
    

提交回复
热议问题