-
Notifications
You must be signed in to change notification settings - Fork 6
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:
- Each "site" is simply a repo containing the
wp-content/*folders - VVV is used for local development environments
- VV can optionally be used to simplify the process of setting up new sites in your VVV config.
docker-compose up- Your wp-config.php file will be automatically generated. It should be git ignored to not overwrite the correct production config on WP Engine.
- Connect to the SQL database using Sequel Pro, the IP for your docker machine, and the credentials from the generated wp-config.php
- 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
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