0

我正在尝试部署一个 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'
4

1 回答 1

3

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

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

于 2012-04-05T21:59:26.993 回答