Deployments
Deployments are done at the end of every sprint. They are typically performed during off-peak hours (9pm EST or after). Please follow the steps listed below for deployment:
Do prep work
Make backup of the production site within wpengine
Make sure you're on the release branch within git
git checkout <branch name>
Look in source tree to see what needs to be included
Open up deployment Jira task (lists all tickets that are included in the deployment)
Update WP core on prod, staging, and dev
Do this only when there is a WP core update (typically won’t do this every time)
Deployment
Must merge all branches into release branch
Git merge <name of branch>
Checkout master branch
git checkout master
Merge release branch into the master branch
Git merge release branch into master
Push from dev > staging > production
Git push <dev environment remote name> master
Check dev environment (dashboard and site)
If dev environment exists
Git push <staging environment remote name> master
Check staging environment (more thoroughly than dev)
Be sure to test on other browsers
Check dashboard
Git push <production environment remote name> master
Check production environment very thoroughly
Be sure to test on other browsers
Check dashboard
git push origin master
Pushes code to github
Only do this if origin is set up for github
If something is major broken:
Log into wpengine
Restore to last backup
Comment on deployment jira ticket that it's completed
Cc Kristin and Bryan
Additional Notes
Core files are not part of the git repo (in the git ignore and not part of version control)
But will need to do a core file update on your local environment