My default Docker-Wordpress-Boilerplate for Roots/Sage-based Theme- (or Plugin-) development.
Run make start
to start the docker and build the containers - after that, open your browser on http://localhost:8080 and finish installation.
--> Can be used for Plugin-development by now. Custom written plugins need to be added to the .gitignore
s exceptions.
Install Roots/Sage by running make setup-roots-sage projectname="NEW_NAME"
to ./src/themes/
by following the wizard.
--> Ready for theme development. .gitignore
is extended by the theme.
make start
starts the containers
make stop
stops the containers
make restart
restarts the containers
make rebuild
rebuilds the containers (keeps db)
make reset
resets the containers completely (including db)
make shell
runs the shell in wordpress-container
make browsersync
starts browsersync
make theme-install
updates node-modules
make theme-lint
lints the assets
make theme-build
builds frontend-assets
make theme-theme-build-production
builds frontend-assets for production