Rails 生产中的 SystemStackError
当在生产环境 (Rails 3.2) 中设置 config.assets.compile = true 时,会引发 SystemStackError。
解决方法是将其设置为 false(这确实很难看)。
这不会发生在全新的应用程序中。
此外,当 staging.rb
为空或与生产环境相同甚至不存在时,运行 RAILS_ENV=staging Rails
仍会引发 SystemStackError
。
更多详细信息,请参阅问题。
有想过如何解决它吗?
When config.assets.compile = true
is set in production environment (Rails 3.2) then the SystemStackError
is raised.
The workaround is to set it to false
(which is ugly really).
This doesn't happen in a brand new app.
Additionally running the RAILS_ENV=staging rails s
still throws the SystemStackError
while the staging.rb
is empty or same as production or even doesn't exist.
More details in the issue.
Any thought how it can be fixed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题是 Authlogic 问题。
我刚刚决定切换到 Devise。
The problem is the Authlogic issue.
I just decided to switch over to Devise.
将 config/environments/production.rb 中的内容复制到 config/environments/staging.rb
copy the content in config/environments/production.rb into config/environments/staging.rb