-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (40 loc) · 952 Bytes
/
Copy pathMakefile
File metadata and controls
57 lines (40 loc) · 952 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
COMPOSE := docker compose
up:
$(COMPOSE) --profile dev up -d --build
watch:
$(COMPOSE) --profile dev up --build --watch
down:
$(COMPOSE) --profile dev down
down-v:
$(COMPOSE) down -v
test:
$(COMPOSE) --profile test build api-test
$(COMPOSE) --profile test run --rm api-test
# test:
# $(COMPOSE) --profile test up \
# --build \
# --abort-on-container-exit \
# --exit-code-from api-test
test-clean:
$(COMPOSE) --profile test down -v
restart:
$(COMPOSE) down && $(COMPOSE) --profile dev up -d
logs:
$(COMPOSE) logs -f
ps:
$(COMPOSE) ps
db:
$(COMPOSE) exec -it db psql -h localhost -U cinema_manager -p 5432
migrate:
$(COMPOSE) exec api ./cinema_manager_seeder
rebuild:
$(COMPOSE) --profile dev build --no-cache
clean:
$(COMPOSE) --profile dev down -v
certs-install:
script/install-local-certs.sh
lint-frontend:
cd src/frontend && npx prettier . --write
lint-api:
cd src/api && go fmt
lint: lint-frontend lint-api