Skip to content

Commit

Permalink
Merge branch 'feature/docs' into 'master'
Browse files Browse the repository at this point in the history
增加 libgit2 相关的安装方法

See merge request !127
  • Loading branch information
CMGS committed Aug 4, 2017
2 parents b3b030e + e1ce564 commit 6cb8039
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,31 @@ Core
`make deps` 可能非常耗时间, 建议开代理, 或者直接从 hub.ricebook.net/base/centos:onbuild-eru-core-2017.03.04 这个镜像 copy.

```shell
git config --global url."[email protected]:".insteadOf "https://gitlab.ricebook.net/"
go get gitlab.ricebook.net/platform/core.git
mv $GOPATH/src/gitlab.ricebook.net/platform/core.git $GOPATH/src/gitlab.ricebook.net/platform/core
cd $GOPATH/src/gitlab.ricebook.net/platform/core
# libgit2 锁定在 0.25.1
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
gco 9c527911c8c630355d92df001575cacbb4a8b8b4 libgit2.rb
HOMEBREW_NO_AUTO_UPDATE=1 brew install libgit2
make deps
make build
```

## Upgrade core on test/production server

```shell
make build
# test server
devtools/upgrade-eru-core.sh test
devtools/deploy.sh test
# prod server
devtools/upgrade-eru-core.sh prod
devtools/deploy.sh prod
```

### GRPC

Generate golang & python code

```shell
$ go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
$ make golang
$ make python
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
make golang
make python
```

Current version of dependencies are:
Expand Down

0 comments on commit 6cb8039

Please sign in to comment.