移动到生产服务器的Rails应用程序显示“符号的转储格式错误”。错误 [英] Rails app moved to production server gives "dump format error for symbol" error
问题描述
我刚刚将Rails应用程序从开发移动到了部署服务器。
我已经安装了乘客,但是我想尝试使用 rails s
来确保一切运行正常(这是我第一次开发和部署Rails
I've just moved my rails app from the development to deployment server.
I've installed passenger, but I wanted to try with rails s
to make sure all was running fine (this is the first time I develop and deploy a rails application).
规范为:带RVM的Ruby 1.9.3,mod_passenger,Rails 3.2.3。所有安装均正确,并且我还启用了Apache模块。顺便说一句,出问题了(乘客不断说错误消息:未知键:类。)
Specs are: Ruby 1.9.3 with RVM, mod_passenger, Rails 3.2.3. All installed correctly and I've also enabled the Apache module. By the way something is going wrong (passenger keeps sayng "Error message: Unknown key: class".)
运行 rails s
给出上面的转储格式错误符号(0x45)
Processing by Devise::SessionsController#new as HTML
Rendered devise/_links.haml (2.2ms)
Rendered devise/sessions/new.html.haml within layouts/application (11.8ms)
Completed 500 Internal Server Error in 110ms
ActionView::Template::Error (dump format error for symbol(0x45)):
8: / HTML5 shim, for IE6-8 support of HTML elements
9: /[if lt IE 9]
10: = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
11: = stylesheet_link_tag "application", :media => "all"
12: /%link(href="images/favicon.ico" rel="shortcut icon")
13: /%link(href="images/apple-touch-icon.png" rel="apple-touch-icon")
14: /%link(href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72")
app/views/layouts/application.html.haml:11:in `_app_views_layouts_application_html_haml__3524679841439843142_22055600'
是什么意思?谷歌搜索似乎是flash []错误,但我真的不明白该怎么办。
What does it mean? Googling it seems a flash[] error but I can't really understand what should I do here.
等待一些建议,谢谢!
推荐答案
同样的问题。尝试删除您的[app] / tmp目录。它似乎正试图解封某些异常文件。
Had the same problem. Try removing your [app]/tmp dir. It seems to be trying to unmarshal some borked files.
这篇关于移动到生产服务器的Rails应用程序显示“符号的转储格式错误”。错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!