Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
After clone:

```bash
docker compose build
docker compose up -d
```

Expand All @@ -23,8 +22,14 @@ services:
wordpress:
environment:
XDEBUG_MODE: ${XDEBUG_MODE:-debug}
# Production base URL used for automatic search-replace in the database.
# Set this only when importing a production dump and needing URL remap.
PROD_SITE_URL: ${PROD_SITE_URL:-}
# Local URL that replaces PROD_SITE_URL during startup synchronization.
# Keep as localhost for local development, or change if you use another host.
LOCAL_SITE_URL: ${LOCAL_SITE_URL:-http://localhost}
# Inline YAML config for automatic plugin/theme installation.
# Use wordpress_org_plugins, wordpress_archive_plugins, wordpress_custom_plugins, and wordpress_custom_themes.
WORDPRESS_SETUP_CONFIG_YAML: |
wordpress_org_plugins:
- advanced-custom-fields
Expand All @@ -37,7 +42,7 @@ services:

nginx:
ports:
- 80:80
- 127.0.0.1:80:80

mariadb:
extends:
Expand All @@ -54,22 +59,9 @@ After that, start the stack with the standard Compose command:

```bash
docker compose up -d --build
docker compose exec --user www-data wordpress wp search-replace --all-tables --report-changed-only <domain-without-protocol> localhost
docker compose exec --user www-data wordpress wp search-replace --all-tables --report-changed-only https://localhost http://localhost
docker compose exec --user www-data wordpress wp user reset-password <username> --show-password --skip-email
```

## Update

```bash
docker compose exec --user www-data wordpress wp core update
docker compose exec --user www-data wordpress wp core update-db
docker compose exec --user www-data wordpress wp plugin update --all
docker compose exec --user www-data wordpress wp language core update
docker compose exec --user www-data wordpress wp language plugin update --all
docker compose exec --user www-data wordpress wp theme update --all
```

## Checking if have files changed at core

You need to put the `.git` folder of current version of WordPress at root directory of current site and run `git status`
Expand Down