forked from kaenova/halliu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 908 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
# Used for creating docker stack for development
dev-docker-up: clear-node-modules update-dep-linux
ifeq ($(OS), Windows_NT)
COMPOSE_CONVERT_WINDOWS_PATHS=1
endif
docker-compose -f docker-compose.dev.yml up -d
# Used for removing docker stack for development
dev-docker-down:
docker-compose -f docker-compose.dev.yml down
dev-docker-down-rmi:
docker-compose -f docker-compose.dev.yml down --rmi all
# Used for updating dependencies on every services
update-dep-linux:
cd backend && npm install -f --target_platform=linux
cd frontend && npm install -f --target_platform=linux
update-dep-local:
ifneq ($(OS), Linux)
make clear-node-modules
endif
cd backend && npm install -f
cd frontend && npm install -f
# Deleting all node modules
clear-node-modules:
cd backend && rm -rf node_modules
cd frontend && rm -rf node_modules
clear-rtmp:
cd temp_data && cd rtmp && rm -rf *.m3u8 && rm -rf *.ts