1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Only force ssl on Heroku

This commit is contained in:
2019-03-25 16:33:04 +00:00
parent 3b790eb74a
commit 10c4401f7b

View File

@@ -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 = {