Specify default ActionMailer host for dev and test

This commit is contained in:
Petko Bordjukov 2014-08-07 14:06:34 +03:00
parent 02059ad2a8
commit 867d2f4fab
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,9 @@ Rails.application.configure do
# Don't care if the mailer can't send. # Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false 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. # Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log config.active_support.deprecation = :log

View File

@ -31,6 +31,9 @@ Rails.application.configure do
# ActionMailer::Base.deliveries array. # ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test 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. # Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr config.active_support.deprecation = :stderr