I am trying to deploy a rails application, but I am stuck with a precompilation error. According to the production log, the error occurs due to the "Blueprint" css script called screen.css (as you can see in the error output below). However, according to the production journal, this asset is actually compiled. I tried to explicitly add screen.css and print.css to the precompilation array, both in application.rb files and in config / environment / production.rb file as follows
config.assets.precompile = %w(screen.css print.css)
but to no avail. I also tried precompiling my resources locally and directing all this to the server. I tried all the suggestions outlined here: the /screen.css plan was not precompiled here too: css rails 3.1 help information help and the same problem remains unresolved: Ruby on Rails 3.2 compiled assets do not work
I have no idea what to try to solve this error. Any help would be greatly appreciated! The log output is below, along with my deployment file, cap file, and application.rb file. Thanks in advance for any suggestions you may have!
This is the output from the log file after deployment, where you can see that screen.css gets precompiled. Error output:
Compiled application.js (5ms) (pid 16431) Compiled jquery.js (2ms) (pid 16431) Compiled jquery_ujs.js (0ms) (pid 16431) Compiled microposts.js (94ms) (pid 16431) Compiled pages.js (1ms) (pid 16431) Compiled sessions.js (0ms) (pid 16431) Compiled users.js (0ms) (pid 16431) Compiled application.css (17ms) (pid 16431) Compiled blueprint/ie.css (0ms) (pid 16431) Compiled blueprint/plugins/buttons/screen.css (0ms) (pid 16431) Compiled blueprint/plugins/fancy-type/screen.css (0ms) (pid 16431) Compiled blueprint/plugins/link-icons/screen.css (0ms) (pid 16431) Compiled blueprint/plugins/rtl/screen.css (0ms) (pid 16431) Compiled blueprint/print.css (0ms) (pid 16431) Compiled blueprint/screen.css (0ms) (pid 16431) Compiled blueprint/src/forms.css (0ms) (pid 16431) Compiled blueprint/src/grid.css (0ms) (pid 16431) Compiled blueprint/src/ie.css (0ms) (pid 16431) Compiled blueprint/src/print.css (0ms) (pid 16431) Compiled blueprint/src/reset.css (0ms) (pid 16431) Compiled blueprint/src/typography.css (0ms) (pid 16431) Compiled custom.css (0ms) (pid 16431) Compiled microposts.css (13ms) (pid 16431) Compiled pages.css (1ms) (pid 16431) Compiled scaffolds.css (15ms) (pid 16431) Compiled sessions.css (1ms) (pid 16431) Compiled users.css (1ms) (pid 16431) 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: 4: <%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %> 5: <%= stylesheet_link_tag 'blueprint/print', :media => 'print' %> 6: 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'
And here is the deployment file:
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
Here is my capfile:
load 'deploy' if respond_to?(:namespace)
Here is the application.rb configuration file:
require File.expand_path('../boot', __FILE__) require 'rails/all' if defined?(Bundler)