You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/DEVELOPER.md
+21-31Lines changed: 21 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,8 +54,7 @@ __We will suppose here that you want to install WordPress 5.9. Please change "5.
54
54
55
55
#### DDEV installation
56
56
57
-
This project is fully compatible with DDEV 1.21.4, and it is recommended to use this specific version.
58
-
For the DDEV installation, please follow the [official instructions](https://ddev.readthedocs.io/en/stable/users/install/ddev-installation/).
57
+
This project is fully compatible with DDEV 1.21.4, and it is recommended to use this specific version. For the DDEV installation, please follow the [official instructions](https://ddev.readthedocs.io/en/stable/users/install/ddev-installation/).
59
58
60
59
### Prepare DDEV WordPress environment
61
60
@@ -80,23 +79,23 @@ wp-sources (choose the name you want for this folder)
80
79
```
81
80
82
81
- Create an empty folder that will contain all necessary sources:
83
-
```
82
+
```shell
84
83
mkdir wp-sources
85
84
```
86
85
- Create an empty `.ddev` folder for DDEV and clone our pre-configured DDEV repo:
Before testing with the `docker` or `ci` parameter, you have to install all the required dependencies
188
186
in the playwright container with this command :
@@ -200,25 +198,23 @@ yarn global add cross-env
200
198
201
199
#### Update composer dependencies
202
200
203
-
As WordPress plugins does not support `composer` installation, we have to add the vendor folder to sources. By doing
204
-
that, we have to use only production ready dependencies and avoid `require-dev` parts. We have also set a config
205
-
platform version of PHP in the `composer.json` that will force composer to install packages on this specific version.
206
-
We are not setting the `"optimize-autoloader": true` in the `composer.json` because it implies a lot of issues during
207
-
development phase.
201
+
As WordPress plugins does not support `composer` installation, we have to add the vendor folder to sources. By doing that, we have to use only production ready dependencies and avoid `require-dev` parts. We have also set a `config` platform version of PHP in the `composer.json` that will force composer to install packages on this specific version.
202
+
203
+
We are not setting the `"optimize-autoloader": true` in the `composer.json` because it implies a lot of issues during development phase.
208
204
209
205
##### Development phase
210
206
211
207
In development phase, you could run the following command:
* Unless you manage to solve the captcha, you'll not be able to access the website.
288
284
289
-
> Note: when you resolve the captcha in your browser, the result is stored in cache.
290
-
> If you remove the captcha decision with `cscli`, then you add a new captcha decision for your IP, you'll not be
291
-
> prompted until you clear the cache or the lifetime for captcha decision has been reached.
285
+
> Note: when you resolve the captcha in your browser, the result is stored in cache. If you remove the captcha decision with `cscli`, then you add a new captcha decision for your IP, you'll not be prompted until you clear the cache or the lifetime for captcha decision has been reached.
292
286
293
287
### Stream mode, for the high traffic websites
294
288
295
289
With live mode, as you tried it just before, each time a user arrives to the website for the first time, a call is made to Local API. If the traffic on your website is high, the bouncer will call Local API very often.
296
290
297
-
To avoid this, Local API offers a "stream" mode. The decisions list is updated at a predefined frequency and kept in cache. Let's try it!
291
+
To avoid this, Local API offers a "stream" mode. The decisions list is updated at a predefined frequency and kept in cache.
298
292
299
-
> This bouncer uses the WordPress cron system. For demo purposes, we encourage you to install the WP-Control plugin,
300
-
> a plugin to view and control each WordPress Cron task jobs.
293
+
> This bouncer uses the WordPress cron system. For demo purposes, we encourage you to install the WP-Control plugin, a plugin to view and control each WordPress Cron task jobs.
301
294
302
295
First, clear the previous decisions:
303
296
@@ -349,8 +342,9 @@ In order to have an explicit commit history, we are using some commits message c
349
342
<type>(<scope>): <subject>
350
343
351
344
Allowed `type` are defined below.
352
-
`scope` value intends to clarify which part of the code has been modified. It can be empty or `*` if the change is a
353
-
global or difficult to assign to a specific part.
345
+
346
+
`scope` value intends to clarify which part of the code has been modified. It can be empty or `*` if the change is a global or difficult to assign to a specific part.
347
+
354
348
`subject` describes what has been done using the imperative, present tense.
355
349
356
350
Example:
@@ -411,7 +405,3 @@ gh workflow run release.yml -f tag_name=vx.y.z
411
405
```
412
406
413
407
Note that the GitHub action will fail if the tag `tag_name` already exits.
0 commit comments