-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (40 loc) · 787 Bytes
/
Makefile
File metadata and controls
51 lines (40 loc) · 787 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
.DEFAULT_GOAL := all
isort = isort /swotvis
black = black -S -l 120 --target-version py310 /swotvis
.PHONY: up
up:
docker compose up
.PHONY: up-all
up-all:
docker compose up -d
cd frontend && npx pm2 start npm --name swotvis -- run dev
.PHONY: up-d
up-d:
docker compose up -d
.PHONY: down
down:
docker compose down
.PHONY: down-all
down-all:
docker compose down
npx pm2 delete swotvis
.PHONY: build
build:
docker compose build
.PHONY: build-all
build-all:
docker compose build
cd frontend && npm install
.PHONY: logs-front
logs-front:
npx pm2 logs swotvis
.PHONY: logs-back
logs-back:
docker compose logs -f api
.PHONY: test
test:
docker compose exec api pytest tests
.PHONY: format
format:
docker compose run -T api $(isort)
docker compose run -T api $(black)