From cdc746b3640ad2a51125d1a8c38913b0966d2349 Mon Sep 17 00:00:00 2001 From: wvengen Date: Sat, 21 Jun 2014 14:28:22 +0200 Subject: [PATCH] update production environment to match 3.3.0 version --- config/environments/production.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 6a1094ff..a476f86c 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -40,7 +40,7 @@ Foodsoft::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 = true # Set to :debug to see everything in the log. config.log_level = :info @@ -75,6 +75,9 @@ Foodsoft::Application.configure do # Disable automatic flushing of the log to improve performance. # config.autoflush_log = false + # Use sendmail to avoid ssl cert problems + config.action_mailer.delivery_method = :sendmail + # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new end