FEATURE: allow use of redis sentinel via redis_sentinels
Use: DISCOURSE_REDIS_SENTINELS and DISCOURSE_REDIS_HOST to configure redis sentinel
This commit is contained in:
@@ -104,11 +104,6 @@ unless File.exists?("config/database.yml")
|
||||
`cp config/database.yml.development-sample config/database.yml`
|
||||
end
|
||||
|
||||
unless File.exists?("config/redis.yml")
|
||||
puts "Copying redis.yml.sample to redis.yml"
|
||||
`cp config/redis.yml.sample config/redis.yml`
|
||||
end
|
||||
|
||||
ENV["RAILS_ENV"] = "profile"
|
||||
|
||||
|
||||
|
||||
@@ -12,14 +12,8 @@ puts "Running: bundle"
|
||||
system "bundle"
|
||||
|
||||
|
||||
redis_yml = root + '/config/redis.yml'
|
||||
database_yml = root + '/config/database.yml'
|
||||
|
||||
if !File.exists?(redis_yml)
|
||||
puts "Creating config/redis.yml"
|
||||
system "cp #{root}/config/redis.yml.sample #{redis_yml}"
|
||||
end
|
||||
|
||||
if !File.exists?(database_yml)
|
||||
puts "Creating config/database.yml"
|
||||
system "cp #{root}/config/database.yml.development-sample #{database_yml}"
|
||||
|
||||
Reference in New Issue
Block a user