This is a WordPress Docker environment for developing WordPress themes.
- Clone this repository with submodules and enter the folder
If you already cloned without
git clone --recurse-submodules git@github.com:Clickadelic/generic-parent.git cd generic-parent--recurse-submodules, initialize them manually:git submodule update --init
- Copy the env template
cp .env.template .env
- Start the Docker environment
docker-compose up -d
- Open http://localhost:8080 and complete the WordPress install
The theme repos are registered as git submodules with ignore = all, meaning changes inside the theme folders never produce diffs in this repo. You can commit and push freely inside any theme without touching this repo.
| Submodule | Path |
|---|---|
| generic-parent | themes/generic-parent |
| generic-child | themes/generic-child |
cd themes/generic-parent # or any other theme
git add .
git commit -m "your message"
git pushgit submodule add git@github.com:Clickadelic/<repo-name>.git themes/<repo-name>
git config -f .gitmodules submodule.themes/<repo-name>.ignore allThen whitelist the path in .gitignore:
!themes/<repo-name>