This document summarizes some workflows and processes used by a development team for WordPress projects, including version control with Git, environment-aware configuration files, database migrations, and automated deployments. It discusses setting up local development environments, managing code standards and reviews, and deploying code from development to multiple environments.
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
WordPress Dev Team Workflows and Processes
1. Dev Team Workflows and Processes
… with WordPress
Overview of some processes used at an agency level. Version control, code standards, database migrations, environment
aware config files and automated deployments. From local development setup to multiple environments, version control to
automated deployments, content migration to modular mentalities. With some how-to talk and some how-not-to talk, we’ll
discuss some ways to “soup up” our process to work for us when it comes to web development and WordPress.
WordCamp Atlanta - 15 April 2018
15. Wp-local-docker setup
1. git clone https://github.com/10up/wp-local-docker.git
<my-project-name>
2. cd <my-project-name>
3. docker-compose up
4. Run setup to download and install WordPress:
a. On Linux / Unix / OSX, run sh bin/setup.sh
b. On Windows, run ./bin/setup
Read more: https://github.com/10up/wp-local-docker
26. What to source control?
Generally we don’t source control code we aren’t writing. (unless it’s useful)
Repo for your whole site?
Repo for your theme?
Repo for your plugin(s)?
30. gulpfile.js
Gulp is a build/watch app built in javascript via node. We can set it to compile our sass,
concatenate our js and minify everything and more.
● Compile SASS
● Concatenate JS
● Minify css and js files
● Optimize theme images
● Set up browsersync - so any file saves to your css/scss, js, php files will auto reload
in your browser for fast dev cycle/workflow!
31. Gulp setup
# install gulp globally
npm install --global gulp
# add gulpfile.js to your theme/plugin
# install dependencies
npm install
# start gulp
gulp
# to stop gulp press CTRL () + C