diff --git a/config/environments/production.rb b/config/environments/production.rb index 4861cf6..3c169d5 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -11,9 +11,17 @@ # 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 = false # Compress JavaScripts and CSS - config.assets.compress = false + config.assets.compress = true + # Don't fallback to assets pipeline if a precompiled asset is missed + config.assets.compile = false #true + + # Generate digests for assets URLs + config.assets.digest = true + # Specifies the header that your server uses for sending files # (comment out if your front-end server doesn't support this) config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx