From 66b9a7a9eecd14b84fcd8bed85cc362b818fc0fb Mon Sep 17 00:00:00 2001 From: julian Date: Sat, 25 Feb 2017 11:51:06 +0630 Subject: [PATCH] update env/production.rb --- Gemfile | 2 +- Gemfile.lock | 2 +- config/environments/production.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 4fb97ed..4feee0b 100644 --- a/Gemfile +++ b/Gemfile @@ -18,7 +18,7 @@ gem 'coffee-rails', '~> 4.2' # gem 'therubyracer', platforms: :ruby gem 'unicorn' gem 'execjs' -gem 'rack', '~> 2.0.0' +gem 'rack', '~> 2.0.1' gem 'therubyracer' platform :ruby do gem 'pg' diff --git a/Gemfile.lock b/Gemfile.lock index 9964444..71ee041 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -238,7 +238,7 @@ DEPENDENCIES listen (~> 3.0.5) pg puma (~> 3.0) - rack (~> 2.0.0) + rack (~> 2.0.1) rails (~> 5.0.0, >= 5.0.0.1) sass-rails (~> 5.0) simple_form diff --git a/config/environments/production.rb b/config/environments/production.rb index 7817a04..7392715 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -16,8 +16,8 @@ Rails.application.configure do # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. - config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? - + #config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + config.public_file_server.enabled = true # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier # config.assets.css_compressor = :sass