Knowledge Base

How Deploy To Your Sites Using Git

Category: Tutorials | Last modified: September 12, 2022

What You Need to Start

In order to begin, you will need the following already setup:

  • A repository for an existing site with a /wp-content/ directory in its root.
  • plugins/ and/or themes/ directory inside /wp-content/
  • The repository in question hosted at GitHub (More providers will be available in the future).
  • The HTTPS URL for the repository you will be deploying from.

Getting Your HTTPS URL

Navigate to the repository you are interested in deploying and click on the green “Code” button. Make sure under the clone title you have selected “HTTPS” or that the header says “Clone with HTTPS” before copying the HTTPS URL.

Github clone tab with HTTPs url selected

Connecting to Pressable

Navigate to your https://my.pressable.com dashboard. Create a new site or select an existing site you want to connect. Click on the Git tab from the site information page.

Paste the url you copied from Github into the field and click “Set Repository URL” to connect.

Authorizing

The page will refresh and you will need to click “Authorize” to authorize Pressable to interact with this repository.

The authorize button to connect to Github

Once you click “Authorize,” you will be prompted to login to GitHub and authorize this interaction.

Github authorization

Selecting the Branch

After you have authorized the application, you’ll be returned to your https://my.pressable.com portal and you will now have the ability to select a branch from your repository. This is the branch that you want to deploy to Pressable servers for the site you are configuring. Once you’ve selected a branch, click on “Set & Deploy Branch” to begin the transfer.

Choose the branch you want to use

As soon as you set a branch, your repository will begin deploying to your site. Going forward, anytime you push to the specified branch, we will receive notice and automatically deploy the changes to your site.

You can monitor the status of your deployments on the “Github History” section underneath the integration settings.

A history of your deployments

Restrictions

We currently do not pull down WordPress Core files or the /wp-content/uploads directory.