Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
30039dae
Commit
30039dae
authored
Sep 06, 2015
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade Redis requirement check to 2.4.0 per
https://github.com/mperham/sidekiq/pull/957
Closes #2222 Closes #2445
parent
50f76ae0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+7
-4
No files found.
lib/tasks/gitlab/check.rake
View file @
30039dae
...
...
@@ -331,15 +331,18 @@ namespace :gitlab do
end
def
check_redis_version
print
"Redis version >= 2.0.0? ... "
min_redis_version
=
"2.4.0"
print
"Redis version >=
#{
min_redis_version
}
? ... "
redis_version
=
run
(
%W(redis-cli --version)
)
if
redis_version
.
try
(
:match
,
/redis-cli 2.\d.\d/
)
||
redis_version
.
try
(
:match
,
/redis-cli 3.\d.\d/
)
redis_version
=
redis_version
.
try
(
:match
,
/redis-cli (.*)/
)
if
redis_version
&&
(
Gem
::
Version
.
new
(
redis_version
[
1
])
>
Gem
::
Version
.
new
(
min_redis_version
))
puts
"yes"
.
green
else
puts
"no"
.
red
try_fixing_it
(
"Update your redis server to a version >=
2.0.0
"
"Update your redis server to a version >=
#{
min_redis_version
}
"
)
for_more_information
(
"gitlab-public-wiki/wiki/Trouble-Shooting-Guide in section sidekiq"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment