From dbc3a6596e1a7ac6a97823491ffc8e789284b44b Mon Sep 17 00:00:00 2001 From: rgarcia Date: Fri, 21 Aug 2015 17:06:51 +0200 Subject: [PATCH] adds mail host for staging and production --- config/environments/production.rb | 3 ++- config/environments/staging.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 5c1b32e48..66b0b51ef 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -62,7 +62,8 @@ Rails.application.configure do # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false + config.action_mailer.raise_delivery_errors = true + config.action_mailer.default_url_options = { host: deploysecret(:server_name) } # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 5c1b32e48..66b0b51ef 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -62,7 +62,8 @@ Rails.application.configure do # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false + config.action_mailer.raise_delivery_errors = true + config.action_mailer.default_url_options = { host: deploysecret(:server_name) } # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found).