-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 769 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (20 loc) · 769 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
test:
go test ./...
build:
go build
deploy:
gcloud app deploy --project=studentsalaryprod
gql:
go run github.com/99designs/gqlgen generate
dev:
go build && ./studentSalaryAPI
db:
./cloud_sql_proxy -instances=student-salary-api:asia-northeast1:student-salary-api=tcp:3306
migrate-up:
migrate -database 'mysql://root:root@tcp(127.0.0.1:3306)/sample' -path db/migrations up
migrate-down:
migrate -database 'mysql://root:root@tcp(127.0.0.1:3306)/sample' -path db/migrations down
migrate-up-production:
migrate -database 'mysql://student:salary@tcp(127.0.0.1:3306)/student_salary_production' -path db/migrations up
migrate-down-production:
migrate -database 'mysql://student:salary@tcp(127.0.0.1:3306)/student_salary_production' -path db/migrations down