generated from bisco/codex-bootstrap
chore: add wp-cli maintenance override
This commit is contained in:
@@ -35,6 +35,21 @@ HTTPS redirects during production startup.
|
||||
2. Run `docker compose --profile tools run --rm wp-cli -c 'wp theme status azionelab'`.
|
||||
3. Verify file ownership before changing permissions; never make the tree world-writable.
|
||||
|
||||
## WP-CLI cannot resolve wordpress.org
|
||||
|
||||
The default WP-CLI container intentionally runs only on the internal data network. Use
|
||||
the maintenance override for commands that must download WordPress core files:
|
||||
|
||||
```bash
|
||||
docker compose -f docker-compose.yml -f docker-compose.maintenance.yml --profile tools run --rm wp-cli -c 'wp core update --version=7.0.2 --force'
|
||||
docker compose -f docker-compose.yml -f docker-compose.maintenance.yml --profile tools run --rm wp-cli -c 'wp core update-db'
|
||||
docker compose --profile tools run --rm wp-cli -c 'wp core version'
|
||||
docker compose restart wordpress proxy
|
||||
```
|
||||
|
||||
If DNS still fails with the maintenance override, inspect the host/container DNS
|
||||
configuration and firewall rules before retrying the update.
|
||||
|
||||
## Uploaded image does not appear on the public page
|
||||
|
||||
1. Confirm the image was selected in **Appearance > Customize**, not only uploaded in
|
||||
|
||||
Reference in New Issue
Block a user