Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
3960d974
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3960d974
编写于
5月 02, 2017
作者:
J
Jacob Vosmaer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Compile gitlab-shell go executables
上级
68c12e15
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
2 deletion
+16
-2
doc/update/9.0-to-9.1.md
doc/update/9.0-to-9.1.md
+1
-0
doc/update/patch_versions.md
doc/update/patch_versions.md
+1
-0
doc/update/upgrader.md
doc/update/upgrader.md
+2
-0
lib/tasks/gitlab/shell.rake
lib/tasks/gitlab/shell.rake
+8
-2
spec/tasks/gitlab/shell_rake_spec.rb
spec/tasks/gitlab/shell_rake_spec.rb
+4
-0
未找到文件。
doc/update/9.0-to-9.1.md
浏览文件 @
3960d974
...
...
@@ -104,6 +104,7 @@ cd /home/git/gitlab-shell
sudo
-u
git
-H
git fetch
--all
--tags
sudo
-u
git
-H
git checkout v
$(
</home/git/gitlab/GITLAB_SHELL_VERSION
)
sudo
-u
git
-H
bin/compile
```
### 7. Update gitlab-workhorse
...
...
doc/update/patch_versions.md
浏览文件 @
3960d974
...
...
@@ -75,6 +75,7 @@ cd /home/git/gitlab-shell
sudo
-u
git
-H
git fetch
--all
--tags
sudo
-u
git
-H
git checkout v
`
cat
/home/git/gitlab/GITLAB_SHELL_VERSION
`
-b
v
`
cat
/home/git/gitlab/GITLAB_SHELL_VERSION
`
sudo
-u
git
-H
sh
-c
'if [ -x bin/compile ]; then bin/compile; fi'
```
### 6. Start application
...
...
doc/update/upgrader.md
浏览文件 @
3960d974
...
...
@@ -60,6 +60,7 @@ GitLab Shell might be outdated, running the commands below ensures you're using
cd /home/git/gitlab-shell
sudo -u git -H git fetch
sudo -u git -H git checkout v`cat /home/git/gitlab/GITLAB_SHELL_VERSION`
sudo -u git -H sh -c 'if [ -x bin/compile ] ; then bin/compile ; fi'
```
## One line upgrade command
...
...
@@ -78,6 +79,7 @@ cd /home/git/gitlab; \
cd
/home/git/gitlab-shell
;
\
sudo
-u
git
-H
git fetch
;
\
sudo
-u
git
-H
git checkout v
`
cat
/home/git/gitlab/GITLAB_SHELL_VERSION
`
;
\
sudo
-u
git
-H
sh
-c
'if [ -x bin/compile ] ; then bin/compile ; fi'
;
\
cd
/home/git/gitlab
;
\
sudo
service gitlab start
;
\
sudo
service nginx restart
;
\
...
...
lib/tasks/gitlab/shell.rake
浏览文件 @
3960d974
...
...
@@ -41,8 +41,14 @@ namespace :gitlab do
# Generate config.yml based on existing gitlab settings
File
.
open
(
"config.yml"
,
"w+"
)
{
|
f
|
f
.
puts
config
.
to_yaml
}
# Launch installation process
system
(
*
%w(bin/install)
+
repository_storage_paths_args
)
[
%w(bin/install)
+
repository_storage_paths_args
,
%w(bin/compile)
].
each
do
|
cmd
|
unless
Kernel
.
system
(
*
cmd
)
raise
"command failed:
#{
cmd
.
join
(
' '
)
}
"
end
end
end
# (Re)create hooks
...
...
spec/tasks/gitlab/shell_rake_spec.rb
浏览文件 @
3960d974
...
...
@@ -11,6 +11,10 @@ describe 'gitlab:shell rake tasks' do
it
'invokes create_hooks task'
do
expect
(
Rake
::
Task
[
'gitlab:shell:create_hooks'
]).
to
receive
(
:invoke
)
storages
=
Gitlab
.
config
.
repositories
.
storages
.
values
.
map
{
|
rs
|
rs
[
'path'
]
}
expect
(
Kernel
).
to
receive
(
:system
).
with
(
'bin/install'
,
*
storages
).
and_call_original
expect
(
Kernel
).
to
receive
(
:system
).
with
(
'bin/compile'
).
and_call_original
run_rake_task
(
'gitlab:shell:install'
)
end
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录