generated from vacaramin/Go-gin-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (19 loc) · 931 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
backend:
go run main.go
migrate-up:
migrate -path Migrations -database "postgres://postgres:helloworld@localhost:5432/postgres?sslmode=disable" up
migrate-down:
migrate -path Migrations -database "postgres://postgres:helloworld@localhost:5432/postgres?sslmode=disable" down
migrate-up-force:
migrate -path Migrations -database "postgres://postgres:helloworld@localhost:5432/postgres?sslmode=disable" -verbose up
migrate-down-force:
migrate -path Migrations -database "postgres://postgres:helloworld@localhost:5432/postgres?sslmode=disable" -verbose down
migrate-fix:
migrate -path Migrations -database "postgres://postgres:helloworld@localhost:5432/postgres?sslmode=disable" force 1 -y
docker-build:
docker build -t backend .
DB-up:
docker-compose -f ./docker-compose-DB-Only.yaml up
DB-down:
docker-compose -f ./docker-compose-DB-Only.yaml down
.PHONY: backend migrate-up migrate-down docker-build DB-up DB-down