generated from EPFL-ENAC/enac-it4r-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (36 loc) · 873 Bytes
/
Makefile
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
.PHONY: backup-dump
install:
pnpm install
npx husky install
$(MAKE) -C frontend install
run-frontend:
$(MAKE) -C frontend dev
test:
$(MAKE) -C frontend test
lint:
$(MAKE) -C frontend lint
lint-staged:
$(MAKE) -C frontend lint-staged
run-db:
docker compose up -d --pull=always postgres
stop-db:
docker compose stop postgres
down-db:
docker compose down postgres
run-dbadmin:
docker compose up -d --pull=always pgadmin
stop-dbadmin:
docker compose stop pgadmin
# setup and run when deploying on server
setup:
echo "nothing to see here"
run:
docker compose -f docker-compose.yml pull
docker compose -f docker-compose.yml build --parallel --no-cache
docker compose -f docker-compose.yml up -d --remove-orphans
stop:
docker compose -f docker-compose.yml stop
logs:
docker compose logs -f $(service)
psql:
psql -h localhost -p 5432 -U postgres