🚀Fast and reliable 🐳 environment for wordpress developement.
defwp is a docker+wordpress+gulp starter. No in depth config is necessary. It starts a complete docker environment with a database and the folders u need to develop. Also it starts a build pipeline to compile and copy your assets to the right place. Just say wich plugins and versions you want, defwp will do the rest. Hop in and develop fantastic new themes and plugins for wordpress.
defwp utilizes docker
, docker-compose
, gulp
, npm
, ẁordpress
& wp-cli
.
docker
, docker-compose
& npm
have to be installed before you go on.
- Clone the repository:
git clone https://github.com/mehlleniumfalke/defwp.git
- Install Developement Dependencies:
npm install
- Start the script:
./start.sh
- DONE!
./start.sh
Install Plugins via the start.sh
script. Just add them to the array like this:
plugins[0]=jetpack
versions[0]=latest
Uninstall Plugins via the start.sh
script. Just add them to the array like this:
uninstall[0]=hello
uninstall[1]=akismet
Wordpress version can be pinned down in docker-compose.yml
Default: latest
Plugin versions can be pinned down in start.sh
Default: latest
The theme folder is mounted at /wp-content/themes/the_theme
, rename as u like.
The plugin folder is mounted at /wp-content/plugins
, leave as it is.
Files in this directorys will be synced to the wordpress image.
The Templates are stored in /wp-content/themes/the_theme/assets/templates
. Yeah really.
Gulp will copy them to their default location.
Non-Template files, like functions.php
can be stored at their default location.
FIY: THE WHY
You can work on this files and changes will be immediatly present in the running wordpress installation.
If you want to develop a Plugin just add:
- ./wp-content/plugins/your_plugin:/var/www/html/wp-content/plugins/your_plugin
to the docker-compose.yml
under "wordpress->volumes".
And add the path (./wp-content/plugins/your_plugin
) to your .gitignore
.
This will mount the folder into the wordpress environment.
Send your feedback and questions to [email protected]
- prompts for wp core install
- fill db with wordpress example content