I'm trying to deploy a rails app... and I'm following the capistrano deployment guide. I'm stuck at the test stage where I am supposed to run app.get("/") in the rails console. When I do so I get an error message related to the blueprint css tools I'm using in my app. Has anyone encountered a similar error about blueprint not being pre-compiled? I have no idea what to do next to try to fix this error. Thanks in advance for any suggestions you might have!
我正在尝试部署rails应用程序......我正在遵循capistrano部署指南。我陷入了测试阶段,我应该在rails控制台中运行app.get(“/”)。当我这样做时,我得到一个与我在我的应用程序中使用的蓝图css工具相关的错误消息。有没有人遇到类似的错误,蓝图没有预先编译?我不知道接下来要做什么来尝试修复此错误。提前感谢您提出的任何建议!
Here's the error output from the log file:
这是日志文件的错误输出:
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 个解决方案
#1
3
Try adding it to your config/application.rb
尝试将其添加到您的config / application.rb
config.assets.precompile = %w(screen.css)
config.assets.precompile =%w(screen.css)
#1
3
Try adding it to your config/application.rb
尝试将其添加到您的config / application.rb
config.assets.precompile = %w(screen.css)
config.assets.precompile =%w(screen.css)