-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 747 Bytes
/
Makefile
File metadata and controls
36 lines (25 loc) · 747 Bytes
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
build:
@go build -o bin/portfolio-instruments cmd/api/main.go
run: build
@./bin/portfolio-instruments
test:
@go test -count=1 -v ./...
migration:
@migrate create -ext sql -dir migrations $(filter-out $@,$(MAKECMDGOALS))
migrate-up:
@go run cmd/migrate/main.go up
migrate-down:
@go run cmd/migrate/main.go down
tc-redact:
@go run cmd/tc_redact/main.go
config-db-up:
@docker-compose -f docker-compose.db.yml up -d
config-app-up:
@docker-compose -f docker-compose.app.yml up -d
config-down:
-@docker-compose -f docker-compose.db.yml down -v --remove-orphans
-@docker-compose -f docker-compose.app.yml down -v --remove-orphans
pg-dump:
@go run cmd/pg_commands/main.go dump
pg-restore:
@go run cmd/pg_commands/main.go restore