diff --git a/config/environments/development.rb b/config/environments/development.rb index ddf0e90..a4f6438 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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 diff --git a/config/environments/test.rb b/config/environments/test.rb index 053f5b6..4e03964 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -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