Skip to content

Instantly share code, notes, and snippets.

@kjs3
Created April 25, 2012 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjs3/2491727 to your computer and use it in GitHub Desktop.
Save kjs3/2491727 to your computer and use it in GitHub Desktop.
asset stuff from production.rb
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Disable Rails's static asset server (Apache or nginx will already do this)
# Enabled for Heroku Cedar stack
config.serve_static_assets = true
config.static_cache_control = "public, max-age=691200" #set to 8 days
# Compress JavaScripts and CSS
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
# Generate digests for assets URLs
config.assets.digest = true
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
config.assets.precompile += %w( active_admin.css active_admin.js users.js)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment