OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
host_name default has to use a proc, apparently file is read before dotenv-rails changes environment
Ivan Kuchin65ed6bc3b4d1
diff --git a/config/constants/settings/definition.rb b/config/constants/settings/definition.rbindex a5e4a46e539..715707dd6b7 100644--- a/config/constants/settings/definition.rb+++ b/config/constants/settings/definition.rb@@ -537,7 +537,7 @@ module Settings},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 productionproduction: nil