-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
66 lines (58 loc) · 1.59 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
.PHONY: prod dev install setup clean
prod:
ddev start
ddev exec npm run build
dev:
ddev start
ddev exec npm run dev
install:
ddev start
ddev exec npm install
ddev composer install
ddev exec php craft install
@if [ -z "$(SITE_NAME)" ]; then \
read -p "Site Name: " SITE_NAME; \
fi; \
echo "CRAFT_SITE_NAME=\"$$SITE_NAME\"" >> .env; \
echo "" >> .env; \
if [ -z "$(SYSTEM_EMAIL)" ]; then \
read -p "System Email: " SYSTEM_EMAIL; \
fi; \
echo "CRAFT_SYSTEM_EMAIL=\"$$SYSTEM_EMAIL\"" >> .env; \
echo "" >> .env; \
if [ -z "$(TEST_EMAIL)" ]; then \
read -p "Test Email: " TEST_EMAIL; \
fi; \
echo "CRAFT_TEST_EMAIL=\"$$TEST_EMAIL\"" >> .env; \
echo "" >> .env; \
ddev exec php craft plugin/install hyper
ddev exec php craft plugin/install seomatic
ddev exec php craft plugin/install vite
ddev exec php craft plugin/install blitz
ddev exec php craft plugin/install sprig
ddev exec php craft plugin/install formie
ddev exec php craft plugin/install imager-x
ddev exec php craft plugin/install minify
ddev exec php craft plugin/install ckeditor
ddev exec php craft plugin/install mailgun
ddev exec php craft plugin/install servd-asset-storage
ddev launch; \
echo "Install complete 🎉"
setup:
ddev start
git pull
ddev exec npm install
ddev composer install
ddev exec php craft up --interactive=0
ddev exec npm run dev
clean:
rm -rf vendor/
rm -rf node_modules/
ddev composer clear-cache
ddev exec npm cache clean --force
update:
ddev exec php craft update all
pull:
ddev exec php craft servd-asset-storage/local/pull-database
up:
ddev exec php craft up --interactive=0