Skip to content

Commit

Permalink
host_name default has to use a proc, apparently file is read before d…
Browse files Browse the repository at this point in the history
…otenv-rails changes environment
  • Loading branch information
toy committed Sep 30, 2024
1 parent 86b16d1 commit 65ed6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/constants/settings/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ class Definition
},
host_name: {
format: :string,
default: "#{ENV.fetch('HOST', 'localhost')}:#{ENV.fetch('PORT', 3000)}",
default: -> { "#{ENV.fetch('HOST', 'localhost')}:#{ENV.fetch('PORT', 3000)}" },
default_by_env: {
# We do not want to set a localhost host name in production
production: nil
Expand Down

0 comments on commit 65ed6bc

Please sign in to comment.