-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (33 loc) · 1.09 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
43
44
45
46
47
48
49
DOCKER_TAG=autobuild
DOCKER_USER=mew1307
lint-frontend:
make -C frontend lint
install:
npm install
start:
make start-backend & make start-frontend
dev:
npm run dev
build:
npm run build
start-frontend:
make -C frontend start
start-backend:
npm run launch
docker-dev:
docker-compose -f docker-compose.dev.yml up -d --build --force-recreate
docker-prod:
docker-compose -f docker-compose.production.yml up -d --build --force-recreate
docker-dev-down:
docker-compose -f docker-compose.dev.yml down
docker-prod-down:
docker-compose -f docker-compose.production.yml down
docker-build-prod:
docker build -f Dockerfile.production -t $(DOCKER_USER)/flappy-chat:$(DOCKER_TAG) .
docker-login:
npx posix-cat .docker_passwd | docker login -u $(DOCKER_USER) --password-stdin
docker-push-prod: docker-login
docker push $(DOCKER_USER)/flappy-chat:$(DOCKER_TAG)
docker-all-prod: docker-build-prod docker-push-prod
.PHONY: install start-frontend start-backend deploy start dev
.PHONY: docker-dev docker-prod docker-dev-down docker-prod-down docker-build-prod docker-login docker-push-prod docker-all-prod