diff options
author | 2011-08-30 17:34:00 +0200 | |
---|---|---|
committer | 2011-08-30 17:34:00 +0200 | |
commit | 94fec963ab1af751e65af6951379316efeb00031 (patch) | |
tree | 28a5acb010dc381f3591c2576f42fbefac799ea4 /config | |
parent | database.yml.mysql: Comment defaults (diff) | |
download | glsamaker-94fec963ab1af751e65af6951379316efeb00031.tar.gz glsamaker-94fec963ab1af751e65af6951379316efeb00031.tar.bz2 glsamaker-94fec963ab1af751e65af6951379316efeb00031.zip |
production env: Do not compress JS and use X-Accel-Redirect
Diffstat (limited to 'config')
-rw-r--r-- | config/environments/production.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 62e5397..2ff9d70 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -12,11 +12,11 @@ Glsamaker::Application.configure do config.serve_static_assets = false # Compress JavaScripts and CSS - config.assets.compress = true + config.assets.compress = false # 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 + config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # Use 'X-Accel-Redirect' for nginx # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true |