adds mailer asset host for staging and production envs
This commit is contained in:
@@ -64,6 +64,7 @@ Rails.application.configure do
|
|||||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||||
config.action_mailer.raise_delivery_errors = true
|
config.action_mailer.raise_delivery_errors = true
|
||||||
config.action_mailer.default_url_options = { host: Rails.application.secrets.server_name }
|
config.action_mailer.default_url_options = { host: Rails.application.secrets.server_name }
|
||||||
|
config.action_mailer.asset_host = "https://#{Rails.application.secrets.server_name}"
|
||||||
|
|
||||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||||
# the I18n.default_locale when a translation cannot be found).
|
# the I18n.default_locale when a translation cannot be found).
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ Rails.application.configure do
|
|||||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||||
config.action_mailer.raise_delivery_errors = true
|
config.action_mailer.raise_delivery_errors = true
|
||||||
config.action_mailer.default_url_options = { host: Rails.application.secrets.server_name }
|
config.action_mailer.default_url_options = { host: Rails.application.secrets.server_name }
|
||||||
|
config.action_mailer.asset_host = "https://#{Rails.application.secrets.server_name}"
|
||||||
|
|
||||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||||
# the I18n.default_locale when a translation cannot be found).
|
# the I18n.default_locale when a translation cannot be found).
|
||||||
|
|||||||
Reference in New Issue
Block a user