Document custom DDEV commands in README

Fixes #266
This commit is contained in:
Oliver Davies 2020-10-29 12:13:25 +00:00
parent dd263a6f38
commit 096f617b8b

View file

@ -36,6 +36,29 @@ Production settings files are generated automatically during a deployment. This
[drupal_settings_files]: https://galaxy.ansible.com/opdavies/drupal_settings_files [drupal_settings_files]: https://galaxy.ansible.com/opdavies/drupal_settings_files
## Local development
Local development is done using [DDEV-Local](https://www.ddev.com/ddev-local).
### Custom DDEV commands
#### Drupal
| Command | Description |
| --- | --- |
| `ddev app install` | Install the site based on the existing config |
| `ddev app refresh` | Re-import the existing config and rebuild cache |
#### Front-end
| Command | Description |
| --- | --- |
| `ddev theme build` | Compile a production (minified and purged) version of the theme's CSS and JS |
| `ddev theme dev` | Compile a development version of the theme's CSS and JS |
| `ddev theme install` | Install the node dependencies for the theme |
| `ddev theme ssh` | SSH into the theme directory within the web container |
| `ddev theme watch` | Compile a development version of the theme's CSS and JS, and watch for changes |
## Migrating data into the website ## Migrating data into the website
To view the status of all the migrations: To view the status of all the migrations: