feat: add migrate cmd

This commit is contained in:
Rogee
2024-12-19 14:22:50 +08:00
parent b68316a778
commit 0660dbed0e
7 changed files with 284 additions and 8 deletions

View File

@@ -12,12 +12,12 @@ tidy:
.PHONY: dist
dist:
@go build -ldflags=${flags} -o bin/debug/atom
@go build -ldflags=${flags} -o bin/debug/atom{{.ProjectName}}
@cp config.toml bin/debug/
.PHONY: release
release:
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/release/app .
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/release/{{.ProjectName}} .
@cp config.toml bin/release/
.PHONY: test