A foundation for setting up new Wordpress sites, highly influenced by https://github.com/roots/bedrock
- Generate new site from this template: https://github.com/nonfiction/bedrock-site/generate
- Visit generated repo, for example: https://github.com/nonfiction/hello-world
- Clone repo, enter directory and install:
git clone [email protected]:nonfiction/hello-world.git
cd hello-world
make install
make up
Common commands are available via Makefile. For example:
make plugin add=wordpress-seo
make theme add=hueman
make package add=normalize.css
make assets
make up
make upp
make target
make deploy
Note: composer installation happens during Docker build, so any new WordPress plugins or themes require a fresh Docker build.
https://github.com/nonfiction/bedrock
https://hub.docker.com/repository/docker/nonfiction/bedrock/
- bedrock:web Wordpress on Apache (composer, wpcli)
- bedrock:dev Webpack Dev Server (npm)
- bedrock:env MySQL Client and .env generator (ruby, thor)
make plugin add=wordpress-seo
make plugin add=members
make plugin add=simple-page-ordering
make plugin add=duplicate-post