Local:
- Docker
- Composer
Staging / Production:
- wp-cli
- Composer
Note: Change my-bedrock-project
to your project name.
git clone git@github.com:mimosafa/wp-composer-template.git my-bedrock-project
Go to the project directory with cd my-bedrock-project
.
composer update
cp .env.example .env
Edit .env file.
Create and start containers:
make up
WP_TITLE
, WP_ADMIN_USER
, WP_ADMIN_PASSWORD
, and WP_ADMIN_EMAIL
, etc. definition in .env
file makes you install and initialize WordPress site in first execution.
Stop services:
make stop
Stop and remove containers, networks:
make down
Stop and remove containers, networks, images, volumes (and wp-config.php
if exists):
make destroy