Skip to content

Commit 6cb8039

Browse files
committed
Merge branch 'feature/docs' into 'master'
增加 libgit2 相关的安装方法 See merge request !127
2 parents b3b030e + e1ce564 commit 6cb8039

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,31 @@ Core
1010
`make deps` 可能非常耗时间, 建议开代理, 或者直接从 hub.ricebook.net/base/centos:onbuild-eru-core-2017.03.04 这个镜像 copy.
1111

1212
```shell
13-
git config --global url."git@gitlab.ricebook.net:".insteadOf "https://gitlab.ricebook.net/"
14-
go get gitlab.ricebook.net/platform/core.git
15-
mv $GOPATH/src/gitlab.ricebook.net/platform/core.git $GOPATH/src/gitlab.ricebook.net/platform/core
16-
cd $GOPATH/src/gitlab.ricebook.net/platform/core
13+
# libgit2 锁定在 0.25.1
14+
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
15+
gco 9c527911c8c630355d92df001575cacbb4a8b8b4 libgit2.rb
16+
HOMEBREW_NO_AUTO_UPDATE=1 brew install libgit2
1717
make deps
18-
make build
1918
```
2019

2120
## Upgrade core on test/production server
2221

2322
```shell
2423
make build
2524
# test server
26-
devtools/upgrade-eru-core.sh test
25+
devtools/deploy.sh test
2726
# prod server
28-
devtools/upgrade-eru-core.sh prod
27+
devtools/deploy.sh prod
2928
```
3029

3130
### GRPC
3231

3332
Generate golang & python code
3433

3534
```shell
36-
$ go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
37-
$ make golang
38-
$ make python
35+
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
36+
make golang
37+
make python
3938
```
4039

4140
Current version of dependencies are:

0 commit comments

Comments
 (0)