Skip to content

WordPress Workflows

Josh Lee edited this page May 16, 2016 · 2 revisions

WordPress projects are typically hosted with WP Engine. A staging environment is provided via WP Engine.

Codeship is used to build CSS and other files and create a WP Engine compatible commit to push via the WPE git push to deploy feature. See: https://github.com/joshleecreates/wpengine-deploy-script

For local development a number of options are available:

VVV workflow:

  1. Each "site" is simply a repo containing the wp-content/* folders
  2. VVV is used for local development environments
  3. VV can optionally be used to simplify the process of setting up new sites in your VVV config.

Docker workflow

  1. docker-compose up
  2. Your wp-config.php file will be automatically generated. It should be git ignored to not overwrite the correct production config on WP Engine.
  3. Connect to the SQL database using Sequel Pro, the IP for your docker machine, and the credentials from the generated wp-config.php
  4. You may optionally establish a local domain for this site using your docker-machine IP and your /etc/hosts/ file: 192.168.99.100 my-project.dev

Setting up your database

In either situation, you will want to import a database from a staging site using the WP Migrate DB plugin. Use your local development environment URL in the find and replace pattern, whether it is your docker-machine IP or a custom domain established in /etc/hosts

Clone this wiki locally