File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 21
21
用 Go 语言编写的 Git 服务,特点是功能精简和速度快,树莓派也能流畅运行。
22
22
我自己就在用,用的人比较少的话内存占用稳定在 100M 左右。
23
23
` rake gogs ` 安装后默认开了注册功能,如果要禁用,运行 ` rake gogsdr ` 即可。
24
+ 新版本升级后,再运行 ` rake gogs ` 和 ` rake gogsdr ` 可以自动完成升级。
24
25
25
26
#### [ GitLab] ( https://github.com/gitlabhq/gitlabhq ) :80 ` rake gitlab `
26
27
知名的开源 Git 服务,特点是功能全面。
Original file line number Diff line number Diff line change 15
15
16
16
- name : Download Gogs binary
17
17
get_url : >
18
- url=https://github.com/gogits/gogs/releases/download/v0.7.6 /linux_amd64.zip
18
+ url=https://github.com/gogits/gogs/releases/download/v0.8.10 /linux_amd64.zip
19
19
dest=/tmp/gogs.zip
20
20
mode=0660
21
21
tags :
22
22
- gogs
23
23
- download
24
24
25
+ - name : Remove existing gogs.zip
26
+ raw : rm -rf /tmp/gogs
27
+ tags :
28
+ - gogs
29
+ - remove
30
+
25
31
- name : Unarchive Gogs
26
- unarchive : src=/tmp/gogs.zip dest=/home/git/ copy=no
32
+ unarchive : src=/tmp/gogs.zip dest=/tmp/ copy=no owner=git
27
33
tags :
28
34
- gogs
29
35
- unarchive
30
36
37
+ - name : Stop existing Gogos
38
+ supervisorctl : name=gogs state=stopped
39
+ ignore_errors : yes
40
+ tags :
41
+ - gogs
42
+ - stop
43
+
31
44
- name : Create directories
32
45
file : path={{ item }} owner=git state=directory
33
46
with_items :
39
52
- gogs
40
53
- dir
41
54
55
+ - name : Backup existing Gogs
56
+ raw : cp -R /home/git/gogs /home/git/gogs-backup
57
+ tags :
58
+ - gogs
59
+ - backup
60
+
61
+ - name : Remove old templates
62
+ raw : rm -rf /home/git/gogs/templates
63
+ tags :
64
+ - gogs
65
+ - remove
66
+
67
+ - name : Upgrade to new Gogs
68
+ raw : cp -a /tmp/gogs/. /home/git/gogs
69
+
42
70
- name : Touch authorized_keys
43
71
file : path=/home/git/.ssh/authorized_keys owner=git state=touch mode=0600
44
72
tags :
You can’t perform that action at this time.
0 commit comments