Deploy from GitHub or GitLab

git, github, gitlab, push, deploy, pull · 0 found this helpful

Your site follows your GitHub or GitLab repository when you deploy from the panel. Push your commits as usual, then click Deploy. We pull the newest commits and copy them to the site.

Automatic deploys on every push aren't available yet. Until they are, each deploy starts from the panel.

Before you start

Deploy your newest commits

  1. Push your commits to GitHub or GitLab.
  2. Open Account → Hosting → your site → Git and SSH.
  3. Click Deploy in the repository's row.

The row shows Deploying and then Live with how long it took. Open Log under a deploy to see each step.

To fetch the newest commits without deploying them, open the repository's menu and choose Pull latest commits.

Deploy a different branch

Open the repository's menu, choose Change branch, enter the branch, and click Change branch. Then click Deploy.

If something goes wrong

What you see Fix
The site didn't change after a deploy Check that you pushed to the branch shown in the repository's row, then open the newest deploy's Log
Set up deploys instead of Deploy The repository has no deploy file yet. Make one, commit it at the top of the repository and push
The deploy failed Open its Log. The last lines say which step stopped

Was this helpful?

Still stuck? Ask us and we'll walk you through it.