-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
39 lines (27 loc) · 928 Bytes
/
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
-include .env
export $(shell sed 's/=.*//' .env)
export PROJECT := $(or $(PROJECT), clar-server)
build-prod:
@echo "+\n++ Make: Run/Build locally ...\n+"
@docker-compose -f docker-compose.yml up --build
run-prod:
@echo "+\n++ Make: Running locally ...\n+"
@docker-compose -f docker-compose.yml up
build-local:
@echo "+\n++ Make: Run/Build locally ...\n+"
@docker-compose -f docker-compose.dev.yml up --build
run-local:
@echo "+\n++ Make: Running locally ...\n+"
@docker-compose -f docker-compose.dev.yml up
run-local-server:
@echo "+\n++ Make: Running locally ...\n+"
@docker-compose -f docker-compose.dev.yml up server
run-local-db:
@echo "+\n++ Make: Running locally ...\n+"
@docker-compose -f docker-compose.dev.yml up db
close-local:
@docker-compose -f docker-compose.dev.yml down
local-db-workspace:
@docker exec -it $(PROJECT)-db sh
local-server-workspace:
@docker exec -it $(PROJECT)-server sh