-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
37 lines (25 loc) · 937 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: develop-locally build clean test run develop-locally prisma-endpoint-to-docker prisma-endpoint-to-local compose-deps prisma-deploy dev docs
OUT = ${GOPATH}/bin/gin-rest-prisma-boilerplate
develop-locally: compose-deps prisma-endpoint-to-local prisma-deploy
build:
go build -v -o ${OUT} .
clean:
rm ${OUT}
test:
go test -v ./tests/*
dev:
fresh || go get -u github.com/pilu/fresh && fresh
docs:
swag init || go get -u github.com/swaggo/swag/cmd/swag
run:
go run main.go
compose-deps:
docker-compose -f docker-compose.override.yml up -d
prisma-endpoint-to-local:
awk -f ./docker/replace.awk ./docker/to-local.txt ./prisma/prisma.yml > ./docker/prisma.yml \
&& mv ./docker/prisma.yml ./prisma/prisma.yml
prisma-endpoint-to-docker:
awk -f ./docker/replace.awk ./docker/to-docker.txt ./prisma/prisma.yml > ./docker/prisma.yml \
&& mv ./docker/prisma.yml ./prisma/prisma.yml
prisma-deploy:
prisma deploy