Deployments
The Deployments page in WPShift allows you to connect a Git repository to your site and manage automated or manual deployments. This is essential for keeping your WordPress site in sync with your codebase, especially if you’re working with a version control system like GitHub or GitLab.
Follow the steps below to understand and configure deployments for your site.
1. Connecting a repository
To set up deployments, you need to connect a repository to your site:
- Click Connect repo to begin linking a repository.
- Select your source provider (e.g., GitHub or GitLab) and provide the repository details. You may need to authorize WPShift to access your repository if it’s the first time connecting.
- Choose the branch you want WPShift to deploy from (e.g.,
main
orproduction
).
Once connected, WPShift can pull code updates from the repository to deploy to your WordPress site.
2. Deploying changes
After connecting a repository, you can choose to deploy changes manually or automatically:
- Deploy now: Click this button to manually deploy the latest code from your selected branch. This action is useful when you want to apply updates immediately.
- Push now: Pushes changes to the repository, triggering a deployment based on the latest code.
Automatic deployment can also be configured within your repository settings to trigger every time you push changes to the specified branch.
3. Viewing deployment history
Once you start deploying, you’ll see a list of previous deployments in this section, including timestamps and statuses for each deployment. This helps you keep track of changes over time and quickly identify any issues if a deployment fails.