From d5eba63bfdbec1e9eda2e186cd41b28ec6f5ac00 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 23 May 2018 11:55:58 +0200 Subject: [PATCH] Configure TimeZone, no assets generator, force SSL --- config/application.rb | 7 ++++++- config/environments/production.rb | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/application.rb b/config/application.rb index 4054f2c..d5b5a21 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,4 +1,4 @@ -require_relative 'boot' +require_relative "boot" require "rails" # Pick the frameworks you want: @@ -26,5 +26,10 @@ module Chexpire # Application configuration can go into files in config/initializers # -- all .rb files in that directory are automatically loaded after loading # the framework and any gems in your application. + config.generators do |g| + g.assets false + end + + config.time_zone = "Europe/Paris" end end diff --git a/config/environments/production.rb b/config/environments/production.rb index bbe7ab0..a61ba5d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -44,7 +44,7 @@ Rails.application.configure do config.active_storage.service = :local # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true + config.force_ssl = true # Use the lowest log level to ensure availability of diagnostic information # when problems arise.