]> cat aescling's git repositories - mastodon.git/commitdiff
Ability to specify Redis passwd on mastodon:setup (#7222)
authorDavid Baucum <maxolasersquad@gmail.com>
Sun, 22 Apr 2018 09:49:16 +0000 (05:49 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 22 Apr 2018 09:49:16 +0000 (11:49 +0200)
Closes #7221

lib/tasks/mastodon.rake

index 505c7e0fa7cc36d56d846c4c0b4e78f87d5b18b4..b5a1483376928d3025deb287772e4b9d038bb58a 100644 (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,
         }