https://github.com/wp-cli/getting-started-workshop
https://github.com/wp-cli/getting-started-workshop
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wp-cli/getting-started-workshop
- Owner: wp-cli
- License: gpl-3.0
- Created: 2022-08-30T17:42:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-30T18:21:24.000Z (over 3 years ago)
- Last Synced: 2025-07-11T07:36:34.282Z (7 months ago)
- Language: Dockerfile
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-devcontainer-wordpress
This contains the configuration necessary for setting up WordPress development using VSCode Dev Containers.
A MariaDB and WordPress devlopment container are started, and Wordpress is automatically installed and available at http://localhost:8080.
## Configuration
By default the container is configured for plugin development, but you can switch to theme development by changing the volume for the WordPress service in `docker-compose.yml`
WordPress settings can be configured in `.devcontainer/wp-setup.sh`, i.e. the site name, and admin user account details. You can also specify a space-separated list of WordPress plugins to automatically install as well. By setting `WP_RESET` to `true`, the container will rebuild the WordPress instalation from scratch every time it is loaded.
## Data folder
Any `.sql` files placed `.devcontainer/data` will be automatically imported when your site is built (using `wp db import`). It is up to you to ensure table name prefixes will match (defualt is wp_).
Anything placed in the `plugins` folder (single files or folders) will be copied into the WordPress plugins folder and activated as a plugin. This enables things like defining custom post types relevant to your imported data set, but not part of the development process.
## Included Tools
- XDebug, configured
- WP-CLI
- Composer
- NodeJS
- PHP/WordPress extensions for VSCode (see `devconatainer.json`)
## TODO
- provide a preconfigured launch.json for PHP debugging
- theme auto-install