-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 905 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
-include .env.local
-include .env.$(APP_ENV)
-include .env.$(APP_ENV).local
export
COMPOSE_PROJECT_NAME := "$(APP_NAME)_$(APP_INSTANCE)"
SUDO := $(shell sh -c "if [ 0 != $EUID ]; then echo 'sudo'; fi")
KERNEL := $(shell sh -c "uname")
-include ./.make/docker
-include ./.make/git
## ----------------------------------------------------------
## Main
## ----------------------------------------------------------
.PHONY: install update start restart down
install:
$(SUDO) sysctl -w vm.max_map_count=262144
make docker/start
$(SUDO) cp "$(PWD)/config/nginx/kibana.conf" "/etc/nginx/sites-enabled/kibana.conf"
$(SUDO) cp "$(PWD)/config/nginx/elasticsearch.conf" "/etc/nginx/sites-enabled/elasticsearch.conf"
$(SUDO) service nginx restart
update:
make docker/down
make git/update
make docker/start
start:
make docker/start
restart:
make docker/restart
down:
make docker/down