diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2016-12-14 00:54:50 +0500 |
---|---|---|
committer | Semyon Pupkov <mail@semyonpupkov.com> | 2017-01-13 10:41:50 +0500 |
commit | a532c6040c1c150810122b172a2fad30d1753dfd (patch) | |
tree | 477dcb195d7a7b2fcb09e49b8c39d7e0ffdc6495 /lib | |
parent | f80ab37cc1450fb9dc61149dbc10c245f3681e45 (diff) | |
download | gitlab-ce-a532c6040c1c150810122b172a2fad30d1753dfd.tar.gz |
Allow to use ENV variables in redis config
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/redis.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/redis.rb b/lib/gitlab/redis.rb index 9226da2d6b1..9384102acec 100644 --- a/lib/gitlab/redis.rb +++ b/lib/gitlab/redis.rb @@ -42,7 +42,7 @@ module Gitlab return @_raw_config if defined?(@_raw_config) begin - @_raw_config = File.read(CONFIG_FILE).freeze + @_raw_config = ERB.new(File.read(CONFIG_FILE)).result.freeze rescue Errno::ENOENT @_raw_config = false end |