From 48d66a205567f7a3d59ce21eb024e11b5eb18b75 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 16 Mar 2016 12:57:01 +0100 Subject: Fixing the docker container setup (with assets compilation &co) --- config/environments/production.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/environments') diff --git a/config/environments/production.rb b/config/environments/production.rb index b0236d09e..1f08fad5a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -22,7 +22,7 @@ Rails.application.configure do # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? + config.serve_static_files = true # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier @@ -42,7 +42,7 @@ Rails.application.configure do # config.action_dispatch.x_sendfile_header = '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 + config.force_ssl = ENV['LOCAL_HTTPS'] == 'true' # Use the lowest log level to ensure availability of diagnostic information # when problems arise. -- cgit