forked from onedarnleyroad/craftcms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (29 loc) · 951 Bytes
/
Makefile
File metadata and controls
30 lines (29 loc) · 951 Bytes
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
.PHONY: build dev pull up install
build: up
ddev exec npm run build
dev: build
ddev exec npm run serve
pull: up
ddev exec php craft servd-asset-storage/local/pull-database --from=production --interactive=0
ddev composer install
install: up build
ddev exec php craft setup/app-id \
$(filter-out $@,$(MAKECMDGOALS))
ddev exec php craft setup/security-key \
$(filter-out $@,$(MAKECMDGOALS))
ddev exec php craft install \
$(filter-out $@,$(MAKECMDGOALS))
ddev exec php craft plugin/install cp-field-inspect
ddev exec php craft plugin/install hyper
ddev exec php craft plugin/install imager-x
ddev exec php craft plugin/install postmark
ddev exec php craft plugin/install redactor
ddev exec php craft plugin/install vite
up:
if [ ! "$$(ddev describe | grep OK)" ]; then \
ddev auth ssh; \
ddev start; \
fi
%:
@:
# ref: https://stackoverflow.com/questions/6273608/how-to-pass-argument-to-makefile-from-command-line