-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (28 loc) · 1.39 KB
/
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
PACKAGE_DIRS := . Transcriber Session-API Scheduler migration lib
install-local: $(PACKAGE_DIRS)
$(PACKAGE_DIRS):
cd $@ && npm install
migrate:
bash -c 'set -a; source .envdefault; if [ -f .env ]; then source .env; fi; set +a; cd migration && npm run migrate'
run-dev: migrate
npm start
run-docker-dev:
docker compose --env-file .envdefault.docker up --build
stop-docker-dev:
docker compose --env-file .envdefault.docker stop
down-docker-dev:
docker compose --env-file .envdefault.docker down
run-docker-prod:
docker compose -f compose.yml -f compose.prod.yml up --build
run-docker-dev-linto-studio:
docker compose -f compose.yml -f compose.override.yml -f compose.linto-studio.yml --env-file .envdefault.docker up --build
stop-docker-dev-linto-studio:
docker compose -f compose.yml -f compose.override.yml -f compose.linto-studio.yml --env-file .envdefault.docker stop
down-docker-dev-linto-studio:
docker compose -f compose.yml -f compose.override.yml -f compose.linto-studio.yml --env-file .envdefault.docker down
clean-node-modules:
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
clean-docker-node-modules:
docker run --rm -v $(PWD):/app -w /app node:20 /bin/sh -c 'find . -name "node_modules" -type d -prune -exec rm -rf {} +'
.PHONY: run-docker-dev run-dev down-docker-dev run-docker-prod clean-node-modules clean-docker-node-modules
.PHONY: install-local $(PACKAGE_DIRS)