# Deploy from Git

> Connect a GitHub, GitLab or Bitbucket repository and deploy on every push.

Source: https://vantuly.com/docs/guides/git-deploy

Laravel, PHP, static, Node.js, Astro, EmDash and Python sites can deploy from a Git repository.

## Connect a repository

1. Open the site and click **Connect repository**. Paste the repository address and pick the **Branch**.
2. Vantuly creates a **Deploy key** on the server for this site. Add it to the repository as a read-only deploy key.
3. Add the **Deploy webhook** URL to the repository's webhooks and turn on **Auto-deploy on push**.

Docker sites also deploy from Git, including public repositories with no deploy key, and private repositories with a team private key you add once and reuse. See [Docker](/docs/apps/sites/docker/).

To skip these steps and pick repositories from a list, [deploy with a GitHub App](/docs/guides/github-app/) instead.

Only pushes to the chosen branch start a deploy. You can also click **Deploy now** at any time.

## How a deploy works

Each deploy builds a new release next to the running one and switches over only when the build succeeds, so visitors never see a half-built site. If a build fails, the previous release keeps running. Apps (Node.js, Python) must answer on their port within 30 seconds, or Vantuly switches back.

You can edit the deploy script and, for apps, the **Start command** in the site's settings.

## Deploy a zip instead

No repository? Click **Choose zip…** and then **Upload and deploy**. Zips can be up to 200 MB. `node_modules`, `.git` and `.env` inside the zip are ignored.
