Skip to content

Commit

Permalink
Production Config: set default_url_options host via ENV var
Browse files Browse the repository at this point in the history
Fixes #608
  • Loading branch information
ewlarson committed Sep 23, 2024
1 parent 99a8523 commit f50a035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_options = {from: %{"B1G Geoportal" <swadm@#{`hostname`.strip}>}}
config.action_mailer.default_url_options = { :host => 'geo.btaa.org' }
config.action_mailer.default_url_options = { :host => ENV["GEOPORTAL_DEFAULT_URL_HOST"] }

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
Expand Down

0 comments on commit f50a035

Please sign in to comment.