-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
executable file
·34 lines (23 loc) · 867 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
SHELL := /bin/bash
.PHONY: hasura-console install run clean db-clean db-migrate db-dump prune update populate-backend django-bash test-web generate-gql web
all: run
install:
@pnpm i
build:
@docker-compose -f docker-compose.yaml --env-file .env.local build
build-no-cache:
@docker-compose -f docker-compose.yaml --env-file .env.local build --no-cache
run: install build
build-run-no-cache: build-no-cache
run-no-cache
prune:
@docker-compose -f docker-compose.yaml --env-file .env.local down
@docker-compose -f docker-compose.yaml --env-file .env.local rm -f
clean: prune
@pnpm run clean
db-clean:
@docker-compose -f docker-compose.yaml down
@docker volume rm db_data prisma_db_data
@docker-compose -f docker-compose.yaml --env-file .env.local up
restart-hasura:
@docker-compose -f docker-compose.yaml --env-file .env.local restart hasura-engine