Skip to content

Instantly share code, notes, and snippets.

@kinopyo
Created September 24, 2011 09:25
Show Gist options
  • Save kinopyo/1239153 to your computer and use it in GitHub Desktop.
Save kinopyo/1239153 to your computer and use it in GitHub Desktop.
Asset Pipeline settings in production.rb
# 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