Created
September 24, 2011 09:25
-
-
Save kinopyo/1239153 to your computer and use it in GitHub Desktop.
Asset Pipeline settings in 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
# Disable Rails's static asset server (Apache or nginx will already do this) | |
config.serve_static_assets = false | |
# 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 | |
# Specifies the header that your server uses for sending files | |
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache | |
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment