Commit 4f3f3bee authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'defaults' into 'master'

Redis defaults

See merge request !42
parents 00e30138 61307fd8
...@@ -55,6 +55,8 @@ class GitlabConfig ...@@ -55,6 +55,8 @@ class GitlabConfig
%W(env -i redis-cli) %W(env -i redis-cli)
else else
redis['database'] ||= 0 redis['database'] ||= 0
redis['host'] ||= '127.0.0.1'
redis['port'] ||= '6379'
if redis.has_key?("socket") if redis.has_key?("socket")
%W(#{redis['bin']} -s #{redis['socket']} -n #{redis['database']}) %W(#{redis['bin']} -s #{redis['socket']} -n #{redis['database']})
else else
......
...@@ -105,7 +105,7 @@ class GitlabProjects ...@@ -105,7 +105,7 @@ class GitlabProjects
end end
def remove_origin_in_repo def remove_origin_in_repo
cmd = %W(git --git-dir=#{full_path} remote remove origin) cmd = %W(git --git-dir=#{full_path} remote rm origin)
pid = Process.spawn(*cmd) pid = Process.spawn(*cmd)
Process.wait(pid) Process.wait(pid)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment