This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Ability to specify Redis passwd on mastodon:setup (
#7222
)
Closes
#7221
pull/4/head
David Baucum
6 years ago
committed by
Eugen Rochko
parent
648d645c2f
commit
ca9192d9ba
1 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-0
lib/tasks/mastodon.rake
+ 7
- 0
lib/tasks/mastodon.rake
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
,
}
Write
Preview
Loading…
Cancel
Save