-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/docs' into 'master'
增加 libgit2 相关的安装方法 See merge request !127
- Loading branch information
Showing
1 changed file
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|