在开发模式下没有问题,但是当我以生产模式启动服务器时,它会抛出
StoredDate:
我最近从rails 5.1降级到rails 4.2.7,因为我的多态关联没有正常运行。
我用puma和unicorn都试过了,所以我不认为问题是服务器。
完整的堆栈要点https://gist.github.com/itsgucci/c0fbc29d2122e648fd90cc5de418dce5
答案 0 :(得分:0)
您的[0.03299451113326, 0.06087754902119, 0.09880244651376, 0.1066781206974, 0.06773109582562, 0.01104778461514, 0.02156994392623, 3.071021124268e-17, 1.072251279194e-16, 0.01396334606969, 2.002731618626e-16, 9.993341885751e-17, 0.0002009498358678, 0.0003707687449719, 0.0006017466156746, 0.09474065009358, 0.3917924760214, 0.129984400831, 0.1579980866207, 2.827902468319e-15, 1.152587596877e-15, 0.2310895197449, 2.213502483059e-15, 1.048685827923e-15, 1.763944008217e-17, 3.254619757728e-17, 5.282150804455e-17, 3.109320915001e-16, 9.633800372448e-16, 1.118676262789e-17, 1.336368133403e-15, 1.286598202313, 1.412088253954, 2.299271905206e-15, 1.305465570574, 1.432795875849, 3.494418486873e-16, 0.1710573251253, 0.1877416268172, 7.134748738863e-16]
似乎已启用了请求ID的日志记录,它看起来像这样:
production.rb
你可以发表评论,一切都应该有用。