wocao
This commit is contained in:
@@ -7,16 +7,32 @@
|
||||
|
||||
GOFLAGS := -trimpath
|
||||
|
||||
.PHONY: build test clean proto proto-tools proto-check
|
||||
.PHONY: build dev ctl test clean proto proto-tools proto-check
|
||||
|
||||
# build the simplegit server into ./build.
|
||||
build:
|
||||
go build $(GOFLAGS) -o simplegit ./cmd
|
||||
@mkdir -p build
|
||||
go build $(GOFLAGS) -o build/simplegit ./cmd
|
||||
|
||||
# dev runs the git smart-HTTP listener on :8093, the internal GitService and
|
||||
# ManageService listener on :8094, and Git over SSH on :2223.
|
||||
dev:
|
||||
go run ./cmd daemon \
|
||||
-http 127.0.1.1:8093 \
|
||||
-gitrpc 127.0.1.1:8094 \
|
||||
-ssh 127.0.1.1:2223
|
||||
|
||||
# ctl opens the management TUI against the dev gitrpc listener.
|
||||
ctl:
|
||||
go run ./cmd ctl -manage http://127.0.1.1:8094
|
||||
|
||||
# run all tests.
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
# ---- Connect (crpc) contract for gitrpc ----
|
||||
# gitrpc/gitrpc.proto is the single source of truth for the gitrpc method set
|
||||
# -- a typed replacement for the hand-written JSON-RPC handlers in
|
||||
|
||||
Reference in New Issue
Block a user