Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.81 KB  |  hits: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. rails production 'css isn't precompiled'
  2. <%= stylesheet_link_tag "application" %>
  3.   <%= javascript_include_tag "application" %> #in app/views/layouts/application.html.erb
  4.  
  5. config/environments/production.rb
  6. config.consider_all_requests_local       = false
  7.   config.action_controller.perform_caching = true
  8. config.serve_static_assets = false
  9. config.assets.precompile += %w( search.js )
  10.   config.assets.precompile += %w( blueprint/screen.css blueprint/print.css )
  11.   config.assets.precompile += %w( *.css *.js )
  12.        
  13. # config/environments/production.rb
  14. # ...
  15. # Don't fallback to assets pipeline if a precompiled asset is missed
  16.   config.assets.compile = true
  17.        
  18. config.assets.precompile += %w( blueprint/screen.css )
  19. config.assets.precompile += %w( blueprint/print.css )
  20.        
  21. bundle exec rake assets:precompile RAILS_ENV=production