JSOPanel Get started
Help Center › Website Owners › Deploying a website from Git

Deploying a website from Git

How to publish a website straight from a Git repository, and update it with one click.

Git Deployment publishes a website straight from a Git repository. Connect it once, then press Deploy whenever you want the site to catch up with the latest commit, there's no need to upload files by hand.

Where to find it

Click Git Deployment in the sidebar, under Applications.

Connecting a website

  1. Choose the website to connect. Only sites not already connected are listed.
  2. Enter the repository's address, either an https:// address or an SSH one such as git@github.com:you/site.git. For a private repository, add the account's SSH key to the repository first.
  3. Optionally set a branch to deploy from. Leave it empty to use the repository's own default branch.
  4. If the site already has files on it, tick Replace what is there. Its existing files are moved to a dated folder in your account, not deleted, so you can still get them back afterward.
  5. Click Connect and deploy.

Deploying an update

Once connected, click Deploy next to the site whenever you want it updated to the latest commit. If a file was also edited directly on the server since the last deploy, it stops and tells you rather than overwriting that change.

Disconnecting

Click Disconnect to remove the link to the repository. Every file stays exactly where it is, only the connection itself is removed, so Deploy is no longer available until you connect it again.

Tip: deploying doesn't happen automatically when you push a new commit, you press Deploy yourself each time you want the site updated. The repository's own history is never reachable from the web either way.

If the repository is a Laravel project, or anything else built to keep its framework files above a public folder, see the article on serving a site from a public subfolder, deploying it from Git doesn't set that up for you the way installing it through Web Applications does.