beautification/typo
This commit is contained in:
parent
ffb7dd8da6
commit
f278d03519
2 changed files with 5 additions and 13 deletions
16
Makefile
16
Makefile
|
@ -1,10 +1,11 @@
|
|||
COMPOSE:=sudo docker-compose
|
||||
CANARY:=node_modules/.yarn-integrity
|
||||
|
||||
.PHONY: all
|
||||
all: develop
|
||||
|
||||
%/node_modules/.yarn-integrity:
|
||||
$(eval image:=$(patsubst %/node_modules/.yarn-integrity,%,$@))
|
||||
%/$(CANARY):
|
||||
$(eval image:=$(patsubst %/$(CANARY),%,$@))
|
||||
$(COMPOSE) build $(image)
|
||||
$(COMPOSE) run --rm $(image) yarn install --production=false
|
||||
|
||||
|
@ -12,19 +13,10 @@ DFILES:=$(wildcard */Dockerfile)
|
|||
IMAGES:=$(patsubst %/Dockerfile,%,$(DFILES))
|
||||
|
||||
.PHONY: develop
|
||||
develop: $(patsubst %,%/node_modules/.yarn-integrity,$(IMAGES))
|
||||
develop: $(patsubst %,%/$(CANARY),$(IMAGES))
|
||||
$(COMPOSE) up
|
||||
|
||||
.PHONY: production
|
||||
production:
|
||||
$(COMPOSE) -f docker-compose.yml -f docker-compose.prod.yml build
|
||||
$(COMPOSE) -f docker-compose.yml -f docker-compose.prod.yml up -d
|
||||
|
||||
.PHONY: fe-init fe-init-simple
|
||||
fe-init:
|
||||
$(COMPOSE) build frontend
|
||||
$(COMPOSE) run --rm frontend vue init bootstrap-vue/webpack .
|
||||
|
||||
fe-init-simple:
|
||||
$(COMPOSE) build frontend
|
||||
$(COMPOSE) run --rm frontend vue init bootstrap-vue/webpack-simple .
|
||||
|
|
|
@ -9,4 +9,4 @@ services:
|
|||
build:
|
||||
context: ./backend
|
||||
ports:
|
||||
- "3001:3000"
|
||||
- "3001:3001"
|
||||
|
|
Reference in a new issue