Deploy from GitHub or GitLab
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
- A repository in Git and SSH that was cloned from GitHub or GitLab. See Deploy with Git.
- A deploy file committed at the top of the repository. See The deploy settings file.
Deploy your newest commits
- Push your commits to GitHub or GitLab.
- Open Account → Hosting → your site → Git and SSH.
- 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 |
Still stuck? Ask us and we'll walk you through it.