forked from layerx-labs/dappkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (43 loc) · 1.36 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
50
51
52
53
54
55
56
57
58
59
60
# ====================================================================================
# init
SHELL:=/bin/bash
ifneq ($(shell test -s .env && echo -n yes),yes)
ifeq ($(shell test -s .env.dist && echo -n yes),yes)
$(shell cp .env.dist .env)
$(shell chmod o+rw .env)
endif
endif
-include .env
export
# ====================================================================================
# env
PROJECT_NAME?=bepro
PROJECT_URL?=-
PROJECT_VENDOR?=-
PROJECT_DESCRIPTION?=-
# ======================================================================================================================
# make command
.PHONY:
all: help
# ssl ------------------------------------------------------------------------------------------------------------------
help: Makefile
@echo " Available command(s):"
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
## up - Create and start containers.
up:
@docker-compose -p ${PROJECT_NAME} up -d
## down - Teardown and stop containers.
down:
@docker-compose -p ${PROJECT_NAME} down
## watch - Watch and build files
watch:
@docker-compose -p ${PROJECT_NAME} up
## build - Build images.
build:
@docker-compose -p ${PROJECT_NAME} build
## test - Run tests
test:
@docker-compose -p ${PROJECT_NAME} exec bepro npm run test
## ganache.start - Start ganache
ganache.start:
@docker-compose -p ${PROJECT_NAME} exec bepro npm run ganache:start