Error pushing Ruby on Rails to heroku

前端 未结 2 527
遇见更好的自我
遇见更好的自我 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'
    
    0 讨论(0)
  • 2021-01-28 02:02

    Have you tried the command heroku logs to print output of rails server? You might find something useful to the problem you have.

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