Appearance
Git Deployments
WPGrip supports push-to-deploy from GitHub, GitLab, and Bitbucket. Connect a repository, link it to one or more sites, and deploy on push or on demand.
Requirements
- A Pro plan or higher (Git deployments are not available on Basic)
- A Git repository on GitHub, GitLab, or Bitbucket
- SSH write access on the target server(s)
Setting Up Deployments
1. Connect a Repository
- Go to Repositories in the sidebar
- Click Add Repository
- Enter the repository’s SSH clone URL (e.g.,
[email protected]:org/theme.git) - Select the branch to deploy (e.g.,
main)
2. Link to Sites
- Open the repository
- Click Connect Site
- Select one or more sites to deploy to
- Set the deploy path on each site (where the repo should be pulled)
3. Configure Webhooks
WPGrip provides a unique webhook URL for each repository. Add it to your Git provider:
GitHub:
- Go to repo Settings → Webhooks
- Add the WPGrip webhook URL
- Set content type to
application/json - Select “Just the push event”
Bitbucket:
- Go to repo Settings → Webhooks
- Add the WPGrip webhook URL
- Select the Repository push trigger
GitLab:
- Go to repo Settings → Webhooks
- Add the WPGrip webhook URL
- Select the Push events trigger
How Deployment Works
- You push to the configured branch
- Your Git provider sends a webhook to WPGrip
- WPGrip SSHs into each linked site
- Runs
git pullin the deploy path - Records the deployment result (success/failure, commit SHA, duration)
Deployment History
Each repository shows a full deployment log:
- Commit SHA and message
- Deploy status (success / failed)
- Duration
- Which sites were deployed to
- Timestamp
The last 50 deployments per site-repository connection are retained.
Manual Deploy
You can trigger a deployment manually from the repository page without pushing a commit. This pulls the latest commit from the configured branch.
Reverting
If a deployment breaks something, you can revert to a previous commit from the deployment log.
WARNING
Git deployments require the SSH user to have write access to the deploy path on the target server.