Commit c4d43725 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'configure-additional-rails-hosts-with-env-variable' into 'master'

Configure additional rails hosts with env variable

See merge request gitlab-org/gitlab!28133
parents c6f45e7d 81b5c7fc
---
title: Add possibility to conigure additional rails hosts with env variable
merge_request: 28133
author:
type: other
......@@ -4,4 +4,9 @@
if Rails.env.development?
Rails.application.config.hosts += [Gitlab.config.gitlab.host, 'unix']
if ENV['RAILS_HOSTS']
additional_hosts = ENV['RAILS_HOSTS'].split(',').select(&:presence)
Rails.application.config.hosts += additional_hosts
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment