-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
33 lines (25 loc) · 778 Bytes
/
Copy pathmakefile
File metadata and controls
33 lines (25 loc) · 778 Bytes
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
PROJECT = "Segment Debugger"
all: prod
install: ;@echo "Installing ${PROJECT}....."; \
npm install
clean: ;@echo "Cleaning ${PROJECT}....."; \
rm -rf node_modules
build: ;@echo "Building ${PROJECT}....."; \
npm install
dev: ; @echo "Development ${PROJECT}....."; \
docker-compose up -d
test: ;@echo "Test ${PROJECT}....."; \
# make clean
# make build
# node config/config-test.js
docker-compose -f docker-compose.test.yml build
docker-compose -f docker-compose.test.yml up
stop:
docker-compose -f docker-compose.test.yml down
docker-compose -f docker-compose.prod.yml down
prod: ;@echo "Starting ${PROJECT}....."; \
make build
# node config/config.js
make build
docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml up