我不确定是什么导致了这个错误——也不确定如何调试这个问题。在运行 Rails 3.1 应用程序时,是否有人对错误“非法硬件指令 rails server”有任何建议?
提前谢谢,丹
更新:
该错误始终是可重现的,并且仅发生在我尝试从 Rails 3.0 升级到 Rails 3.1 (RC1) 的项目中
我没有在日志中看到任何东西——除了一堆警告:
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <class:Entity> at .../app/models/entity.rb:3)
警告来自使用名为acts_as_audited 的gem。如果我对此发表评论......它会起作用。我不认为警告会导致 rails 报告硬件错误。