How does git deployment work?
Connect a GitHub, GitLab or Bitbucket repository and choose a branch. Each push to that branch builds and deploys your app, with the build log shown live in the dashboard.
Git deploys are on every paid plan. You can roll back to an earlier deploy, deploy a specific commit, set environment variables, schedule tasks (cron jobs), run commands on your app from the dashboard and send deploy notices to Slack, Discord or your own web address.
On Pro, Studio, Agency, Solo Plus and Solo HA, every pull request gets its own live preview address, so you review working code before you merge. See the developer tools page.
Related questions
Can I deploy a Next.js app automatically from GitHub?
Yes. Connect your GitHub repository once, and every push to your chosen branch builds and deploys your Next.js app automatically. It works on every paid plan, from Starter at £12 a month.
Full answerCan I test changes before they go live?
Yes. Site cloning copies a site so you can try a risky change on the copy first; it is on every paid plan except Starter. Apps deployed from Git also get a preview copy for every pull request (a proposed code change) on Pro, Studio, Agency, Solo Plus and Solo HA.
Full answerHow do environment variables work?
Environment variables are the settings and secrets your app reads, such as API keys and database addresses. You set them for each site in the dashboard, and your app can read them both while it builds and while it runs.
Full answerWhat databases are available?
Every site gets its own MySQL database, included in your plan and never shared with another site. On any paid plan you can also add managed PostgreSQL, Redis and ClickHouse databases, from £6 a month each.
Full answer