Skip to content

Commit

Permalink
Add default value for MAILER_DEFAULT_PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
sanG-github committed Apr 12, 2024
1 parent caa4e11 commit 85249fc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def mailer_default_url_config
<<~RUBY
config.action_mailer.default_url_options = {
host: ENV.fetch('MAILER_DEFAULT_HOST', 'localhost'),
port: ENV.fetch('MAILER_DEFAULT_PORT')
port: ENV.fetch('MAILER_DEFAULT_PORT', '3000')
}
RUBY
end
Expand Down
2 changes: 1 addition & 1 deletion .template/spec/base/config/environments/production_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def mailer_default_url_config
<<~RUBY
config.action_mailer.default_url_options = {
host: ENV.fetch('MAILER_DEFAULT_HOST', 'localhost'),
port: ENV.fetch('MAILER_DEFAULT_PORT')
port: ENV.fetch('MAILER_DEFAULT_PORT', '3000')
}
RUBY
end
Expand Down
2 changes: 1 addition & 1 deletion .template/spec/base/config/environments/test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def mailer_default_url_config
<<~RUBY
config.action_mailer.default_url_options = {
host: ENV.fetch('MAILER_DEFAULT_HOST', 'localhost'),
port: ENV.fetch('MAILER_DEFAULT_PORT')
port: ENV.fetch('MAILER_DEFAULT_PORT', '3000')
}
RUBY
end
Expand Down
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
config.action_mailer.default_url_options = {
host: ENV.fetch('MAILER_DEFAULT_HOST', 'localhost'),
port: ENV.fetch('MAILER_DEFAULT_PORT')
port: ENV.fetch('MAILER_DEFAULT_PORT', '3000')
}
RUBY
end
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
config.action_mailer.default_url_options = {
host: ENV.fetch('MAILER_DEFAULT_HOST', 'localhost'),
port: ENV.fetch('MAILER_DEFAULT_PORT')
port: ENV.fetch('MAILER_DEFAULT_PORT', '3000')
}
RUBY
end
Expand Down
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
config.action_mailer.default_url_options = {
host: ENV.fetch('MAILER_DEFAULT_HOST', 'localhost'),
port: ENV.fetch('MAILER_DEFAULT_PORT')
port: ENV.fetch('MAILER_DEFAULT_PORT', '3000')
}
RUBY
end
Expand Down

0 comments on commit 85249fc

Please sign in to comment.