Browse Source

Set action mailer host to env vars

pull/153/head
baarkerlounger 4 years ago
parent
commit
a3451e4075
  1. 2
      config/environments/production.rb
  2. 2
      config/environments/sandbox.rb

2
config/environments/production.rb

@ -58,6 +58,8 @@ Rails.application.configure do
config.action_mailer.perform_caching = false
config.action_mailer.default_url_options = { host: ENV['PRODUCTION_HOST'], port: 3000 }
# 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

2
config/environments/sandbox.rb

@ -58,6 +58,8 @@ Rails.application.configure do
config.action_mailer.perform_caching = false
config.action_mailer.default_url_options = { host: ENV['SANDBOX_HOST'], port: 3000 }
# 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

Loading…
Cancel
Save