@@ -5,7 +5,7 @@ This project is maintained using composer. Please refer to the documentation pro
5
5
6
6
## Prerequesites
7
7
8
- * Install docker and [docker- compose](https://docs.docker.com/compose/install/) - use version 1.22.0 or later.
8
+ * Install docker and [docker compose](https://docs.docker.com/compose/install/) - use version 1.22.0 or later.
9
9
10
10
* Install phapp (see tools) - or use the project-local version if preferred:
11
11
@@ -18,7 +18,7 @@ This project is maintained using composer. Please refer to the documentation pro
18
18
# Check ID:
19
19
id -u $USER
20
20
# If not 1000, run:
21
- echo "# Allow docker- compose setup to switch to the correct user." >> ~/.bashrc
21
+ echo "# Allow docker compose setup to switch to the correct user." >> ~/.bashrc
22
22
echo "export COMPOSE_DEFAULT_USER=$(id -u $USER)" >> ~/.bashrc
23
23
bash
24
24
@@ -28,20 +28,20 @@ To setup the project, ensure you have all prerequesites fullfilled and follow ne
28
28
29
29
* Optional: Drop container and data from previous runs:
30
30
31
- docker- compose down -v
31
+ docker compose down -v
32
32
33
33
* Initialize setup and run docker compose
34
34
35
35
phapp setup localdev
36
- docker- compose up -d --build
36
+ docker compose up -d --build
37
37
38
38
* Build the app:
39
39
40
40
phapp build
41
41
42
42
* Run `phapp init` to quickly initialize the application.
43
43
44
- docker- compose exec cli phapp init --no-build
44
+ docker compose exec cli phapp init --no-build
45
45
46
46
## Localdev project URLs
47
47
@@ -54,8 +54,8 @@ To setup the project, ensure you have all prerequesites fullfilled and follow ne
54
54
For now most phapp and drush must be from inside the docker container.
55
55
Do so via
56
56
57
- docker- compose exec cli phapp init --no-build
58
- docker- compose exec cli drush cr
57
+ docker compose exec cli phapp init --no-build
58
+ docker compose exec cli drush cr
59
59
60
60
However, the exception is `phapp build`. Run it on the host so that your SSH key(s)
61
61
are picked up and you can access private repositories:
@@ -64,7 +64,7 @@ are picked up and you can access private repositories:
64
64
65
65
During development it's convenient to permanently switch to the docker cli container:
66
66
67
- docker- compose exec cli bash
67
+ docker compose exec cli bash
68
68
drush cr
69
69
70
70
## Command line tools
@@ -93,31 +93,31 @@ instructions on how to install phapp globally.
93
93
94
94
```
95
95
# Get in the docker web container (where you can use the phapp commands)
96
- docker- compose exec cli bash
96
+ docker compose exec cli bash
97
97
98
98
# Quick-install the application for development:
99
- docker- compose exec cli phapp init --no-build
99
+ docker compose exec cli phapp init --no-build
100
100
101
101
# Update the build and run updates after switching branches:
102
102
phapp build
103
- docker- compose exec cli phapp update --no-build
103
+ docker compose exec cli phapp update --no-build
104
104
105
105
# Install the app from scratch:
106
- docker- compose exec cli phapp install
106
+ docker compose exec cli phapp install
107
107
```
108
108
The commands executed can be found in `phapp.yml`.
109
109
110
110
- During development, some useful commands are:
111
111
112
112
```
113
113
# Config export (export your config changes):
114
- docker- compose exec cli drush cex -y
114
+ docker compose exec cli drush cex -y
115
115
116
116
# Config import (manual import of config files):
117
- docker- compose exec cli drush cim -y
117
+ docker compose exec cli drush cim -y
118
118
119
119
# Cache clear/rebuild:
120
- docker- compose exec cli drush cr
120
+ docker compose exec cli drush cr
121
121
```
122
122
123
123
## Running tests
0 commit comments