forked from activelamp/12-factor-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (55 loc) · 1.71 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
80
81
SHELL := /usr/bin/env bash
####################
## Stack Commands ##
####################
PHONY += setup
setup: bundle-install pull-images pull-dependencies
setup-build: rebuild pull-dependencies
rebuild: bundle-install build
bundle-install:
bundle install --path .bundle/gems
PHONY += start
start:
bundle exec docker-sync-stack start
start-services:
docker-compose -f docker-compose.yml -f docker-compose-dev.yml up
start-sync:
bundle exec docker-sync start --foreground
PHONY += clean
clean:
bundle exec docker-sync-stack clean
pull-images:
docker-compose pull
push-images:
docker-compose push
pull-dependencies:
build:
docker-compose build
#########################
## Individual Commands ##
#########################
PHONY += standard_load
standard_load:
rm src/.keep
composer create-project drupal/recommended-project:8.9.13 src
PHONY += standard_install
standard_install:
mv yoursite src/web/profiles
cp src/web/sites/default/default.settings.php src/web/sites/default/settings.php
chmod 666 src/web/sites/default/settings.php
mkdir src/web/sites/default/files
chmod 777 src/web/sites/default/files
# PHONY += special_load
# special_load:
# composer create-project --no-install drupal/recommended-project:8.9.11 src
# PHONY += special_install
# composer intall
# NOTE AFTER USER PLACES THEIR OR OUR SUPPLIED CUSTOM
# COMPOSER.JSON &/or COMPOSER.LOCK files in the correct
# directory and they have edited any credentials in the
# quickstart.settings.php file or the .env file we ultimately
# provide, then the various directory, file moves/creates/
# permissions need to be added.
# May need to add cd src, mkdir config, chmod 777 config to
# handle some existing site moves.
.PHONY: $(PHONY)