我在 Heroku 的 Bamboo 堆栈上运行 Rails 3.09 Ruby 1.92 应用程序。该应用程序在本地运行的生产模式下运行良好,没有问题。我正在尝试诊断为什么该应用程序无法在 Heroku 上运行。我收到 500 错误其他服务器错误。有没有人看到过类似日志中的内容?
这是我的日志...
https://gist.github.com/2655795
更新:这是更新的日志:https ://gist.github.com/2655991
更新:我在我的 production.rb 文件中启用了 config.whiny_nils = true ,现在我在 Heroku 上遇到了这个错误,但没有在我的生产环境中本地运行。我在本地使用 Postgres。
G::Error: ERROR: null value in column "id" violates not-null constraint
: INSERT INTO "sessions"