A base template for new dxw WordPress projects, including decision records.
Click "Use this template" to start a new Github repo based on this template, or use whippet generate app
to generate a repo locally.
Search for TODO
in this README, and across this repo, and follow those instructions to update it for your new repo, and then delete those instructions.
TODO: Remove the above sections from the README
TODO: Replace the [Your Project Name]
heading above with the name of your project.
Production: Staging:
TODO: Add the production & staging URLs to the above.
Please use main
/develop
branches.
TODO: add the link to the Trello board
TODO: generate default Ghost Inspector test suites for staging p, using GovPress Tools:
govpress ghostinspector create-suite -s [dalmatian-service-name] -i [dalmatian-infrastructure name -e [dalmatian-environment]
Then add the link to this site's Ghost Inspector tests above
Run the setup (first-time run only):
script/setup
Start the server:
script/server
You can also run the server in detached mode (i.e. without any output to your console):
script/server -d
Once the server has started, the following containers will be running:
admin
/admin
)root
/foobar
)For a /bin/sh console running on the WordPress container, run script/console
For a MySQL console, run bin/wp db cli
Use Whippet to manage plugins or external themes.
See the theme README for more on how to develop the theme.
TODO: Remove the README.md
from wp-content/themes/theme
, and rename README.example.md
to README.md
, updating it as needed.
TODO: List any cookies being set by the theme and/or plugins so that Ops can configure the caching correctly.
TODO: Document any custom or non-standard behaviour that may confuse developers new to the project, e.g. default wordpress or plugin behaviour that is being overridden.