Specify default ActionMailer host for dev and test
This commit is contained in:
parent
02059ad2a8
commit
867d2f4fab
|
@ -16,6 +16,9 @@ Rails.application.configure do
|
|||
# Don't care if the mailer can't send.
|
||||
config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
# Use localhost for default host
|
||||
config.action_mailer.default_url_options = {host: 'localhost:3000'}
|
||||
|
||||
# Print deprecation notices to the Rails logger.
|
||||
config.active_support.deprecation = :log
|
||||
|
||||
|
|
|
@ -31,6 +31,9 @@ Rails.application.configure do
|
|||
# ActionMailer::Base.deliveries array.
|
||||
config.action_mailer.delivery_method = :test
|
||||
|
||||
# Use localhost for default host
|
||||
config.action_mailer.default_url_options = {host: 'localhost:3000'}
|
||||
|
||||
# Print deprecation notices to the stderr.
|
||||
config.active_support.deprecation = :stderr
|
||||
|
||||
|
|
Loading…
Reference in New Issue