Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将我的项目推送到 heroku 并打开了应用程序。但是,它出现了“应用程序错误”,并注意到我检查日志以获取详细信息。
我在 iTerm 中输入了“heroku 日志”,但我不明白问题出在哪里?以及如何阅读日志?
heroku 日志-1
heroku 日志-2
heroku 日志-3
如果您想查看应用程序在开发模式下显示的错误详细信息,您可以添加config.consider_all_requests_local = true 您的 config/environments/production.rb,然后再次推送到 heroku。
config.consider_all_requests_local = true