From 535e65ead1badbdd046b76263eaa471ed59ddbf6 Mon Sep 17 00:00:00 2001 From: Andy Zhao Date: Wed, 11 Jul 2018 14:05:23 -0400 Subject: [PATCH] Change mailer default url to https://dev.to (#549) * Change mailer default url to https://dev.to * Use ENV instead of hardcoding url --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 87181d1f1..bb144edff 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -108,7 +108,7 @@ config.webpacker.check_yarn_integrity = false config.action_mailer.delivery_method = :smtp config.action_mailer.perform_deliveries = true - config.action_mailer.default_url_options = { host: config.app_domain } + config.action_mailer.default_url_options = { host: ENV["APP_PROTOCOL"] + ENV["APP_DOMAIN"] } ActionMailer::Base.smtp_settings = { :address => 'smtp.sendgrid.net', :port => '587',