-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
79 lines (62 loc) · 1.42 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.PHONY: start
start: _config.yml _config_dev.yml _config_lan.yml _config_local.yml
docker-compose up server
.PHONY: stop
stop:
docker-compose down
.PHONY: lint
lint:
docker-compose up linter
.PHONY: clean
clean: stop
rm -rf \
.sass_cache \
_site \
node_modules \
vendor \
;
docker-compose rm -v
.PHONY: image
image: clean
docker-compose build
.PHONY: shell
shell:
docker-compose run --rm server bash
.PHONY: health-check
health-check:
docker-compose run --rm server bundle exec \
/mnt/app/scripts/health_check.rb \
/mnt/app/_config.yml
.PHONY: upgrade
upgrade:
docker-compose run --user root --rm server bundle update
make image
.PHONY: serve
serve: _config.yml _config_dev.yml
bundle exec jekyll serve --config=_config.yml,_config_dev.yml
_config_local.yml:
@printf "WARNING: Local machine configuration file is missing. "
@printf "Enter data at the prompts to make one.\n\n"
@./scripts/make_config_local.sh
.PHONY: serve-lan
serve-lan: _config.yml _config_dev.yml _config_lan.yml _config_local.yml
JEKYLL_ENV=lan bundle exec jekyll serve \
--config=_config.yml,_config_dev.yml,_config_lan.yml,_config_local.yml
.PHONY: init
init:
bundle install
.PHONY: build
build:
./scripts/build.sh
.PHONY: build-netlify
build-netlify:
./scripts/build_netlify.sh
.PHONY: build-preview
build-preview:
./scripts/build_preview.sh
.PHONY: build-qa
build-qa:
./scripts/build_qa.sh
.PHONY: test
test:
./scripts/test.sh