rails app deploy error - 'blueprint / screen.css未预编译'

时间:2012-04-05 21:51:41

标签: ruby-on-rails deployment capistrano blueprint-css

我正在尝试部署rails应用程序...而且我正在关注capistrano部署指南。我陷入了测试阶段,我应该在rails控制台中运行app.get(“/”)。当我这样做时,我得到一个与我在我的应用程序中使用的蓝图css工具相关的错误消息。有没有人遇到类似的蓝图没有预编译的错误?我不知道接下来要做什么来尝试修复此错误。提前感谢您提出的任何建议!

以下是日志文件的错误输出:

Started GET "/" for 12.13.14.15 at 2012-04-05 14:15:50 -0700
Processing by PagesController#home as HTML
Rendered pages/home.html.erb within layouts/application (1.1ms)
Rendered layouts/_stylesheets.html.erb (1.3ms)
Completed 500 Internal Server Error in 6ms

ActionView::Template::Error (blueprint/screen.css isn't precompiled):
    1: <!--[if lt IE9]>
    2: <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    3: <![endif]-->
    4: <%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %>
    5: <%= stylesheet_link_tag 'blueprint/print', :media => 'print' %>
    6: <!--[if lt IE 8]><%= stylesheet_link_tag 'blueprint/ie' %><![endif]-->
    7: <%= stylesheet_link_tag 'custom', :media => 'screen' %>
  app/views/layouts/_stylesheets.html.erb:4:in `_app_views_layouts__stylesheets_html_erb___2010157553399413981_33056460'
  app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__4294160261947576619_31749320'

1 个答案:

答案 0 :(得分:3)

尝试将其添加到您的config / application.rb

config.assets.precompile =%w(screen.css)