-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
38 lines (26 loc) · 889 Bytes
/
Copy pathjustfile
File metadata and controls
38 lines (26 loc) · 889 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
37
38
set shell := ["powershell","-c"]
set dotenv-load := true
pg_url := env("PG_URL")
buf-breaking:
buf breaking --against .git#subdir=proto
db-migrate DIRECTION AMOUNT="":
migrate -source file://db/migrations -database {{pg_url}} {{DIRECTION}} {{AMOUNT}}
db-create NAME:
migrate create -ext sql -dir db/migrations -seq {{NAME}}
db-connect:
docker exec -it postgres psql -U postgres -d postgres
create-migration TITLE:
migrate create -ext sql -dir db/migrations -seq {{TITLE}}
run-server: build-server
./build/server/server.exe
build-server:
go build -o ./build/server/server.exe ./cmd/server
run-client: build-client
./build/client/client.exe
build-client:
go build -o ./build/client/client.exe ./cmd/client
run-worker: build-worker
./build/worker/worker.exe
build-worker:
go clean
go build -o ./build/worker/worker.exe ./cmd/worker