-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 831 Bytes
/
Makefile
File metadata and controls
39 lines (27 loc) · 831 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
34
35
36
37
38
39
frontend=@docker-compose run --rm -p 3000:3000 frontend
backend=@docker-compose run --rm -p 8080:8080 backend
# build and run using docker
.build: Dockerfile
docker build --target frontend-dev -t node-reaper-frontend .
docker build --target backend-dev -t node-reaper-backend .
docker build . -t node-reaper
touch .build
run: .build
@docker run --rm -it -v ~/.aws:/root/.aws -p 8080:8080 node-reaper
shell: .build
@docker run --rm -it node-reaper sh
# for local development, start front and back end separately
frontend-dev: .build
$(frontend) elm-app start
backend-dev: .build
$(backend) gradle run
# unit testing
frontend-test: .build
$(frontend) elm-test
backend-test: .build
$(backend) gradle test
# shells for dev/debugging
frontend-shell: .build
$(frontend) bash
backend-shell: .build
$(backend) bash