From 259e3aa7bf35d4c68d536bdd1b008dbfe2e3f564 Mon Sep 17 00:00:00 2001 From: David Baucum Date: Sun, 22 Apr 2018 05:49:16 -0400 Subject: [PATCH] Ability to specify Redis passwd on mastodon:setup (#7222) Closes #7221 --- lib/tasks/mastodon.rake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 505c7e0fa7..b5a1483376 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -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, }