Rails 应用程序部署错误 - "蓝图/屏幕.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'

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

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

相关内容

  • 没有找到相关文章

最新更新