Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
30 lines
565 B
Makefile
30 lines
565 B
Makefile
DATABASE_URL ?= postgres://descrybe:descrybe@localhost:5433/descrybe?sslmode=disable
|
|
GOOSE ?= go run github.com/pressly/goose/v3/cmd/goose@v3.24.1
|
|
SQLC ?= go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.29.0
|
|
|
|
.PHONY: migrate-up sqlc run worker migrator tidy test vet
|
|
|
|
migrate-up:
|
|
$(GOOSE) -dir sql/schema postgres "$(DATABASE_URL)" up
|
|
|
|
sqlc:
|
|
$(SQLC) generate
|
|
|
|
run:
|
|
go run ./cmd/api
|
|
|
|
worker:
|
|
go run ./cmd/worker
|
|
|
|
migrator:
|
|
go run ./cmd/migrator -mysql "$(MIGRATE_MYSQL_DSN)" -postgres "$(DATABASE_URL)"
|
|
|
|
tidy:
|
|
go mod tidy
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
vet:
|
|
go vet ./...
|