summaryrefslogtreecommitdiff
path: root/config/environments
diff options
context:
space:
mode:
authorconnorshea <connor.james.shea@gmail.com>2016-04-09 16:31:41 -0600
committerconnorshea <connor.james.shea@gmail.com>2016-04-09 16:31:41 -0600
commit44d9f52fd9dba09c352f64bb742291e5adab423a (patch)
tree53b1222afdb3c146da6e6edfa755a7eddd371a7e /config/environments
parent600b94cd8bdf767e3f5ae4b21af73858a0055a7c (diff)
downloadgitlab-ce-44d9f52fd9dba09c352f64bb742291e5adab423a.tar.gz
Enable asset compression in production.
`config.assets.compress` needed to be explicitly enabled. Follow-up to !3544. Resolves #14344.
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/production.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 909526605a1..a9d8ac4b6d4 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -21,6 +21,9 @@ Rails.application.configure do
# Generate digests for assets URLs
config.assets.digest = true
+ # Enable compression of compiled assets using gzip.
+ config.assets.compress = true
+
# Defaults to nil and saved in location specified by config.assets.prefix
# config.assets.manifest = YOUR_PATH