-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (29 loc) · 957 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
# Build .env files for each example app
build_file_from_sample = if [ ! -e $(1) ]; then cp $(1)-sample $(1); echo "Created $(1)"; else echo "Already built $(1)"; fi
EXAMPLES = legacy-settings multi-app zero-config fully-loaded
.PHONY: .env
.env:
@echo "------ Create .env files from .env-samples"
@for dir in $(shell find ./examples -mindepth 1 -maxdepth 1 -type d); do \
$(call build_file_from_sample, $$dir/.env); \
done
# Build django and vite docker containers.
.PHONY: build
build:
sh scripts/build.sh
# Run legacy-settings demo
.PHONY: legacy-settings-demo
legacy-settings-demo: .env
sh examples/legacy_settings/start.sh
# Run new-settings demo
.PHONY: legacy-settings-demo
new-settings-demo: .env
sh examples/new_settings/start.sh
# Run multi-app demo
.PHONY: build-multi-app-demo
build-multi-app-demo: .env
sh examples/multi_app/build.sh
# Run multi-app demo
.PHONY: multi-app-demo
multi-app-demo: .env
sh examples/multi_app/start.sh