A lot of our customers take advantage of our free test sites where they can show their clients changes they’ve been working on. Once the client approves everything, they need to push those changes from the test site to the live site. This post will how that process can be automated, where files will go from GitHub to WordPress intelligently. Once this is setup you will never have to manually remember what files changed, or push entire folders just to be sure.
In order to follow this tutorial, we must assume the following.
- You have git configured and working locally
- You have a two distinct test and production environments
- You know how to push changes to your GitHub repo
- You know how to make branches in Git
- You know how to merge pull requests with GitHub
1. Local Development – At first, changes are made locally on the developers machine, once the developer is happy with changes, he pushes to the “Staging” branch at GitHub.
2. Deploy HQ – Deploy HQ deploys the code in the appropriate location.
3. UAT – The website owner, or customer looks at the website, is happy, and signs off on the work.
4. Pull Request – A Pull request is made on GitHub, and merged in with master. Deploy HQ deploys to the production site.
Configuring the test server at DeployHQ.
Configure GitHub to make a web hook call after a push
Please note, this process is independent of any hosting company. This will work whether you host with us, or elsewhere.