Skip to content

Clickadelic/wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Docker Image with WP-CLI

This is a WordPress Docker environment for developing WordPress themes.

Setup

  1. Clone this repository with submodules and enter the folder
    git clone --recurse-submodules git@github.com:Clickadelic/generic-parent.git
    cd generic-parent
    If you already cloned without --recurse-submodules, initialize them manually:
    git submodule update --init
  2. Copy the env template
    cp .env.template .env
  3. Start the Docker environment
    docker-compose up -d
  4. Open http://localhost:8080 and complete the WordPress install

Theme submodules

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

Working on themes

cd themes/generic-parent   # or any other theme
git add .
git commit -m "your message"
git push

Adding a new theme submodule

git submodule add git@github.com:Clickadelic/<repo-name>.git themes/<repo-name>
git config -f .gitmodules submodule.themes/<repo-name>.ignore all

Then whitelist the path in .gitignore:

!themes/<repo-name>

About

A generic WordPress development environment powered by docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors