-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (28 loc) · 1007 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
run:
docker compose up -d
sleep 10
make db-apply
down:
docker compose down
db-apply:
docker compose exec api hasura metadata apply
docker compose exec api hasura migrate apply --database-name default
docker compose exec api hasura metadata reload
db-export:
docker compose exec api hasura metadata export
docker compose exec api hasura migrate create "auto" --from-server --database-name default
db-apply-prod:
docker compose -f docker-compose.prod.yml exec api hasura metadata apply
docker compose -f docker-compose.prod.yml exec api hasura migrate apply --database-name default
docker compose -f docker-compose.prod.yml exec api hasura metadata reload
run-prod:
docker compose -f docker-compose.prod.yml up -d
sleep 10
make db-apply-prod
codegen/user:
docker compose run --rm view-user npm run codegen
codegen/admin:
docker compose run --rm view-admin npm run codegen
codegen:
docker compose run --rm view-user npm run codegen
docker compose run --rm view-admin npm run codegen