1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-24 15:16:26 +09:00

Ability to specify Redis passwd on mastodon:setup (#7222)

Closes #7221
This commit is contained in:
David Baucum 2018-04-22 05:49:16 -04:00 committed by Eugen Rochko
parent 648d645c2f
commit ca9192d9ba

View File

@ -107,9 +107,16 @@ namespace :mastodon do
q.convert :int
end
env['REDIS_PASSWORD'] = prompt.ask('Redis password:') do |q|
q.required false
a.default nil
q.modify :strip
end
redis_options = {
host: env['REDIS_HOST'],
port: env['REDIS_PORT'],
password: env['REDIS_PASSWORD'],
driver: :hiredis,
}