From 10c4401f7b15dcf53564f396afc3974560bf0c26 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 25 Mar 2019 16:33:04 +0000 Subject: [PATCH] Only force ssl on Heroku --- config/environments/production.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 582ed0d..c8cd017 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -94,8 +94,10 @@ Wrestling::Application.configure do config.assets.compile = true config.assets.digest = true - #Added by me to force SSL in production - config.force_ssl = true + #Added by me to force SSL in production on heroku + if ENV["IS_HEROKU"] == "true" + config.force_ssl = true + end #MAIL config.action_mailer.smtp_settings = {