Created
April 25, 2012 18:03
-
-
Save kjs3/2491727 to your computer and use it in GitHub Desktop.
asset stuff from production.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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