1 Star 0 Fork 195

不争馒头0_0/gin-admin

forked from Lyric/gin-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 729 Bytes
一键复制 编辑 原始数据 按行查看 历史
Lyric 提交于 2019-10-21 16:36 . Update swagger
.PHONY: start build
NOW = $(shell date -u '+%Y%m%d%I%M%S')
SERVER_BIN = "./cmd/server/server"
RELEASE_ROOT = "release"
RELEASE_SERVER = "release/server"
all: start
build:
@go build -ldflags "-w -s" -o $(SERVER_BIN) ./cmd/server
start:
go run cmd/server/main.go -c ./configs/config.toml -m ./configs/model.conf -swagger ./internal/app/swagger
swagger:
swag init -g ./internal/app/routers/api/swagger.go -o ./internal/app/swagger
test:
@go test -cover -race ./...
clean:
rm -rf data release $(SERVER_BIN) ./internal/app/test/data ./cmd/server/data
pack: build
rm -rf $(RELEASE_ROOT)
mkdir -p $(RELEASE_SERVER)
cp -r $(SERVER_BIN) configs $(RELEASE_SERVER)
cd $(RELEASE_ROOT) && zip -r server.$(NOW).zip "server"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jinghua81/gin-admin.git
git@gitee.com:jinghua81/gin-admin.git
jinghua81
gin-admin
gin-admin
master

搜索帮助