forked from kek-Sec/GopherDrop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 624 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 624 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
.PHONY: build build-debug up up-debug down logs dbshell start-db stop-db test ui-build ui-up ui-down
# Default build (production)
build:
docker compose build
# Build in debug mode
build-debug:
docker compose build --build-arg DEBUG=true --build-arg GIN_MODE=debug
up:
docker compose up -d
down:
docker compose down
logs:
docker compose logs -f app
dbshell:
docker compose exec db psql -U $(DB_USER) -d $(DB_NAME)
start-db:
docker compose up -d db
stop-db:
docker compose stop db
test:
go test ./... -v
ui-build:
@echo "Building UI..."
cd ui && npm install && npm run build
ui-up:
cd ui && npm run dev