forked from plaid/quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 673 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 673 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
DOCKER_COMPOSE := docker-compose
DOCKER_COMPOSE_YML := --file docker-compose.yml
ifneq ("$(wildcard docker-compose.local.yml)","")
DOCKER_COMPOSE_YML += --file docker-compose.local.yml
endif
language := node
SUCCESS_MESSAGE := "✅ $(language) quickstart is running on http://localhost:3000"
.PHONY: up
up:
REACT_APP_API_HOST=http://$(language):8000 \
$(DOCKER_COMPOSE) \
$(DOCKER_COMPOSE_YML) \
$@ --build --detach --remove-orphans \
$(language)
@echo $(SUCCESS_MESSAGE)
.PHONY: logs
logs:
$(DOCKER_COMPOSE) \
$@ --follow \
$(language) frontend
.PHONY: stop build
stop build:
$(DOCKER_COMPOSE) \
$(DOCKER_COMPOSE_YML) \
$@ \
$(language) frontend