You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
402 B

# Go parameters
GOCMD=GO111MODULE=on go
GOBUILD=$(GOCMD) build
GOTEST=$(GOCMD) test
all: build
build:
rm -rf target/texas
mkdir target/
#cp etc/config.toml target/config.toml
$(GOBUILD) -o target/texas cmd/main.go
clean:
rm -rf target/
run:
nohup target/texas -conf=target/config.toml -region=sh -zone=sh001 -deploy.env=dev -weight=10 2>&1 > target/texas.log &
stop:
pkill -f target/texas