Skip to content

Commit

Permalink
Merge pull request #2617 from pat-son/devEmailHttp
Browse files Browse the repository at this point in the history
Email links don't use HTTPS for dev
  • Loading branch information
pat-son authored Apr 7, 2017
2 parents af7ff06 + a6faf38 commit d67441d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,10 @@
# with SQLite, MySQL, and PostgreSQL)
# config.active_record.auto_explain_threshold_in_seconds = 0.5

config.action_mailer.default_url_options = { protocol: 'https', host: `hostname`.chomp }
# Don't use HTTPS for the dev server
if `hostname`.chomp == 'rsense-dev.cs.uml.edu'
config.action_mailer.default_url_options = { host: `hostname`.chomp }
else
config.action_mailer.default_url_options = { protocol: 'https', host: `hostname`.chomp }
end
end

0 comments on commit d67441d

Please sign in to comment.