---
title: "Git and Deploy"
description: "Git and Deploy in Arianet BaaS - one-click connect of a GitHub or GitLab repository (or a self-managed GitLab with a token), the repository layout (arianet/migrations, arianet/functions, arianet/config.toml and package.json), automatic production deploys on every push, a preview per branch and merge request, promote, redeploy and cancel, build settings and variables, commit statuses and troubleshooting by error code."
url: https://docs.ariaservice.net/en/baas/git
markdown: https://docs.ariaservice.net/en/baas/git.md
language: en
---

# Git and Deploy

With **Git and Deploy** («Git و Deploy») you connect a **GitHub** or **GitLab** repository to the Project, and the repository becomes the source of the whole app: the frontend, the database migrations, the Edge Functions and the settings.

- Every **push to the production branch** builds and publishes the Site and applies the migrations, functions and `config.toml` to the Project.
- Every **other branch and every pull/merge request** gets a **preview** at its own address; production is not touched.
- Each deploy's status shows next to the commit on GitHub or GitLab, and one click **promotes** a preview to production.

Open **Git و Deploy** in the Project's menu. With no repository connected you see the **Connect repository** («اتصال Repository») button and the suggested repository layout.

> **Without git too**
The same works without git: deploy the Site with [Sites](https://docs.ariaservice.net/en/baas/sites) and the backend with [`arianet baas push`](#push) from the terminal.

## Sample project: arianet-baas-starter {#starter}

The fastest way to start is [**arianet-baas-starter**](https://github.com/ariaservice/arianet-baas-starter): a small but complete Persian "Notes" app (RTL, Vazirmatn font, light and dark) built with Vite and TypeScript, ready to deploy with Git, that shows every part of Arianet BaaS working together:

| Feature | In the sample |
|---|---|
| [Auth](https://docs.ariaservice.net/en/baas/auth-api) | sign-up and sign-in with email and password, and guest (anonymous) sign-in without any email or SMS when `anonymous_enabled` is on |
| [Database and RLS](https://docs.ariaservice.net/en/baas/security) | a notes table with owner-only policies in `arianet/migrations` |
| [Storage](https://docs.ariaservice.net/en/baas/storage-api) | the private `note-images` bucket in `config.toml`, per-user folder policies, images shown through signed URLs |
| [Realtime](https://docs.ariaservice.net/en/baas/realtime) | changes in one tab or device appear in the others at once, still filtered by RLS |
| [Edge Functions](https://docs.ariaservice.net/en/baas/functions) | the `note-stats` function (text statistics) with `verify_jwt` and shared code in `_shared` |

To build your own app from it:

1. On GitHub, open [arianet-baas-starter](https://github.com/ariaservice/arianet-baas-starter), click **Use this template** and create your repository (it can be private).
2. In the panel, open the Project, go to **Git و Deploy**, click **Connect with GitHub** («اتصال با GitHub») and pick the new repository ([connect steps](#connect)).
3. In the **Settings** step Vite is detected (`npm run build`, output `dist`); name the Site and confirm.

The first deploy starts by itself: the migrations, the bucket, the function and the Site are applied, and `ARIANET_BAAS_URL` and `ARIANET_BAAS_ANON_KEY` are set during the build. Local development and every file are explained in the sample's README. Live demo: [arianet-notes-demo.site.arianet.app](https://arianet-notes-demo.site.arianet.app).

## One-click connect with GitHub or GitLab {#connect}

> **New to this?**
If you do not know what GitHub or a repository is, [Start with no tech background](https://docs.ariaservice.net/en/baas/github-for-beginners) walks through every step from creating an account to the first deploy. To work with an AI assistant: [Build with AI](https://docs.ariaservice.net/en/baas/build-with-ai).

**Connect repository** is a wizard that needs no token:

1. **Git host** («میزبان Git»): choose **GitHub** or **GitLab** (gitlab.com) ("no token; only approve access"). For GitLab on your own server choose [Self-managed GitLab](#self-managed).
2. **Arianet's access** («دسترسی آریانت»): before going to GitHub or GitLab, read what Arianet can and can never do ([below](#access)) and press **Continue to GitHub** or **Continue to GitLab**.
3. Approve access on GitHub or GitLab:
   - **GitHub:** install Arianet's app on your account or organization, choosing **only the repositories you want** (`Only select repositories`), then authorize.
   - **GitLab:** `Authorize` the Arianet application.
4. You come back to the panel. **Choose repository** («انتخاب Repository»): repositories are listed with their name, whether they are private, default branch and last update; use **Search repository…** to find one. On GitHub, if a repository is missing, press **Configure Arianet's access on GitHub** («دسترسی Arianet را در GitHub تنظیم کنید») and add it to the installation.
5. **Settings** («تنظیمات»): the panel reads the repository and proposes the settings: app type, package manager, build command, output folder and Site name (from the repository's name). Pick the **production branch** («Branch اصلی (Production)») and change the [build settings](#build-settings) if needed.
6. **Connect and deploy** («اتصال و Deploy»): the connection is saved, a webhook is registered on the repository and the first deploy starts; the panel takes you to its live log.

The first deploy applies the repository's migrations, `config.toml` and functions to this Project. Migrations already applied (from the CLI or the console) are not run again.

To connect you need enough rights on the repository: **Admin** or **Maintain** on GitHub, **Maintainer** or higher on GitLab. An account you linked once is used again without the trip to GitHub or GitLab ("connected with GitHub as @…"); press **Another account** («حساب دیگر») for a different one.

### What Arianet can access {#access}

| Arianet can | Arianet can never |
|---|---|
| Read the code of **only the repositories** you choose. | Change your code or push anything. |
| Add a **webhook** so a push starts a deploy. | See your other repositories (on GitHub only the ones you choose; on GitLab only the projects you choose and connect are used). |
| Show the deploy's result next to your commits (commit status). | Access your password. |

- The permissions of Arianet's GitHub app on a repository: read contents (`Contents: read`) and `Metadata`, and write only `Commit statuses` and `Webhooks`. It has no access to your account settings.
- The tokens obtained from GitHub or GitLab are stored encrypted, never shown or written to a log, and never available to the build (your code).
- A linked account belongs to the member who linked it; other members of the Arianet account cannot browse or connect repositories with it.

### Revoking access {#revoke}

- **In the panel:** the **Linked accounts** («حساب‌های متصل») card on the Git and Deploy page lists the identities you linked. **Disconnect** («قطع اتصال») ends Arianet's access to that account's repositories. If the account is still used by a Project, [disconnect](#disconnect) that Project's repository first.
- **On GitHub:** in your account (or organization) settings, `Applications` → `Installed GitHub Apps`, `Configure` Arianet's app (`ariaservice`) to take repositories away, or `Uninstall` it; you can also `Revoke` it under `Authorized GitHub Apps`.
- **On GitLab:** in `Preferences` → `Applications` → `Authorized applications`, press `Revoke` for **Arianet**.

Once access is revoked, the connection shows "needs reconnecting" in the panel and deploys fail with `git_reauth_required`. Press **Reconnect to GitHub** (or GitLab) to make the same connection active again.

## Self-managed GitLab and token connections {#self-managed}

For GitLab on your own server, choose **Self-managed GitLab** («GitLab سازمانی / شخصی (Self-managed)») in the first step:

1. Enter **your GitLab address** with `https` and without `/api/v4` (such as `https://gitlab.example.com`). The server must be reachable from the internet.
2. **Create a token on your GitLab** opens the personal access token page with the name `Arianet` and the `api` scope filled in. Press `Create`, set an expiry date and paste the token in the panel.
3. Paste the repository path (such as `group/subgroup/my-app`) or its full address, and enter the production branch.

For **GitHub Enterprise**, or if you prefer a token, press **Connect with a token (advanced)** («اتصال با Token (پیشرفته)») in the first step. The token must be for this repository only:

| Host | Token | Permissions |
|---|---|---|
| GitHub / GitHub Enterprise | Fine-grained personal access token, with `Only select repositories` and only this repository | `Contents: Read-only`, `Webhooks: Read and write`, `Commit statuses: Read and write` (`Metadata: Read-only` is implied) |
| GitLab | Project access token (`Settings → Access tokens`) | `Role: Maintainer` (registering the webhook needs it), scopes `api` and `read_repository` |

For GitHub Enterprise enter the server's API address (usually ending in `/api/v3`). The token is stored encrypted and only its last four characters are shown. Before it expires, save a new one with **Change connection** («تغییر اتصال»); with an expired token deploys fail with `fetch_failed` or `repository_token_refused`. If the repository belongs to an organization, its owner may have to approve the token.

## Repository layout {#layout}

```text
<app directory>/
  package.json                  # the Site (optional): built with npm run build
  arianet/
    config.toml                 # Auth, buckets, Cron and function settings
    migrations/0001_init.sql    # in name order, in one transaction
    functions/hello/index.ts    # one directory per function
    functions/_shared/          # code shared by every function
```

Every part is optional: a repository with only `arianet/migrations` applies only migrations, and one with only a frontend only publishes the Site. The paths can be changed in the [connection settings](#build-settings). The backend is read straight from the repository at the exact commit and needs no build (at most 2,000 files and 64 MB a deploy).

### Migrations: `arianet/migrations` {#migrations}

- The `.sql` files right in this directory (not in subdirectories), **in name order**. Start the names with a number or a timestamp: `0001_init.sql`, `20261129093000_orders.sql`.
- All files not applied yet run together in **one transaction**: all of them or none. Do not put `BEGIN` or `COMMIT` in them.
- The history is the same as [`arianet baas db push`](https://docs.ariaservice.net/en/cli#migrations) and the console's: a file applied before is not run again.
- **Do not change an applied file.** If the text of a file that already ran changes, the deploy is refused with `migration_changed`; put the change in a new migration file.
- At most 200 files and 2 MB of SQL.

### Functions: `arianet/functions` {#functions}

- Every subdirectory is an [Edge Function](https://docs.ariaservice.net/en/baas/functions), and the directory's name is the function's: `arianet/functions/hello/index.ts`.
- Entry file: `index.ts` (or `index.js`, `index.mjs`, `index.tsx`, `index.jsx`, `main.ts`, `main.js`), or the one named in `[functions.<name>] entrypoint`.
- Put shared code in `arianet/functions/_shared/` and import it as `../_shared/x.ts`; it goes into every function's bundle.
- A function whose code did not change is not redeployed. Functions the repository does not hold are left as they are (not deleted).

### Settings: `arianet/config.toml` {#config-toml}

```toml
[auth]
site_url = "https://shop.example.com"
redirect_urls = ["https://shop.example.com/*"]
email_enabled = true
phone_enabled = false
anonymous_enabled = false
disable_signup = false

[auth.providers.google]        # secrets never go in the repository: set them in the panel
enabled = true
client_id = "1234.apps.example"

[storage.buckets.avatars]
public = true
file_size_limit = 5242880
allowed_mime_types = ["image/png", "image/jpeg"]

[cron.cleanup]
schedule = "0 3 * * *"
sql = """
delete from events where at < now() - interval '30 days';
"""

[cron.ping]
schedule = "*/15 * * * *"
enabled = true
http = { url = "https://shop.example.com/api/ping", method = "POST" }

[functions.hello]
verify_jwt = false
entrypoint = "index.ts"
```

| Section | Keys |
|---|---|
| `[auth]` | `site_url`, `redirect_urls`, `email_enabled`, `phone_enabled`, `anonymous_enabled`, `disable_signup` ([Auth](https://docs.ariaservice.net/en/cli-reference/auth#settings)) |
| `[auth.providers.<name>]` | `enabled`, `client_id` ([Providers](https://docs.ariaservice.net/en/cli-reference/auth#providers)) |
| `[storage.buckets.<name>]` | `public`, `file_size_limit` (bytes), `allowed_mime_types` ([Storage](https://docs.ariaservice.net/en/baas/storage#create-bucket)) |
| `[cron.<name>]` | `schedule`, `enabled`, and `sql = "…"` or `http = {url, method, headers, body, timeout_ms}` ([Cron](https://docs.ariaservice.net/en/baas/integrations#cron)) |
| `[functions.<name>]` | `verify_jwt`, `entrypoint` ([verify_jwt](https://docs.ariaservice.net/en/baas/functions#verify-jwt)) |

- Every deploy compares the named values with the Project and applies **only the differences**; the deploy's page lists the changes (create, update, unchanged).
- **Anything the file does not name is not changed or deleted.** A bucket, Cron job or provider taken out of the file stays in the Project; delete it in the panel.
- An unknown key is refused with its line number (`invalid_config`). Never write secrets (such as a provider's secret) in the file; set them in the panel or with the CLI.

### The Site: `package.json` {#site}

When the connection has a Site, the frontend is built in the app directory and published to the [Site](https://docs.ariaservice.net/en/baas/sites):

- **Install:** the package manager comes from the lock file (`pnpm-lock.yaml` → pnpm, `yarn.lock` → yarn, else npm; with a lock file, `npm ci`).
- **Build:** `<package manager> run build` when `package.json` has a `build` script.
- **Output:** the first existing folder of `dist`, `build`, `out` and `public`, or the one you set.
- A repository with no `package.json` but with `index.html` or `public/` is published as a static Site without a build.
- App types detected automatically: Next.js (static export, `out`), Nuxt (`generate`, `.output/public`), Astro, Vite, Create React App and plain HTML. Server-side rendering (SSR) is not supported yet; build a static output.

## Production and the production branch {#production}

The **production branch** is the branch whose pushes update production; leave it empty for the repository's default branch. A production deploy runs these steps in order, and **the first step that fails ends the deploy, with the Project keeping what it had**:

| Step | What it does |
|---|---|
| **Reading the repository** | `config.toml`, migrations and functions are read at the commit. |
| **Check** | Every function's bundle is built, the migrations are compared with the history (nothing runs) and the settings' differences are computed. |
| **Build** | The frontend is built and uploaded, but not published yet. |
| **Migrations** | The new migrations run in one transaction. |
| **Settings (config.toml)** | The differences are applied. |
| **Functions** | Changed functions are deployed. If this step or the next fails, the functions this deploy changed go back to their previous version. |
| **Publishing the Site** | The new Site version is published **last**, in one switch. |

- A commit that is queued, running or deployed on its branch already is not queued again. A newer commit of a branch **supersedes** the older queued deploys.
- With an **app directory (root directory)** set, a push that changes nothing under it deploys nothing (handy in a monorepo).
- A Project paused for idleness wakes up for a deploy. A Project you paused yourself takes no deploys (`project_not_active`).
- **Deploy now** («Deploy الان») deploys a branch's latest commit without a new push: the production branch as production, any other branch as a preview.

## Previews {#previews}

Every push to another branch, and every pull request (GitHub) or merge request (GitLab) opened, reopened or updated, gets a **preview**:

- Address: **`https://<branch>--<site>.site.arianet.app`**; for example branch `feature/checkout` of Site `shop` is `https://feature-checkout--shop.site.arianet.app`. The branch name is lowercased and every other character becomes a `-`; very long branches are shortened and end in a short hash.
- A preview is only **built and checked**: migrations, settings and functions are **not** applied to the Project, and production does not change. A preview talks to the same backend (Database and Auth) of the Project, so it works on real data.
- Previews are served with the Site's rules (SPA fallback, headers, redirects) and `X-Robots-Tag: noindex` (kept out of search engines), and are automatically allowed Auth redirect targets.
- Deleting the branch or closing (or merging) the request removes its preview. The **Previews** card lists every preview with its address and last update, and **Delete** removes one by hand; the next push to that branch builds it again.
- The number of previews per Site has a Plan limit; at the limit, the least recently updated preview goes first.
- Pull requests from forks (other people's repositories) are **never built**; unknown code never runs on your Project.
- Previews can be turned off in the connection settings.

## Promote, redeploy and cancel {#promote}

In the **Deploys** list (filtered by kind, state and branch) and on each deploy's page:

- **Promote to production:** makes a production deploy from a ready preview's commit and **reuses its build** (no new build). That commit's migrations, `config.toml` and functions are applied to the Project and the main Site is published with that version.
- **Redeploy:** a new deploy of the same commit; the build runs again and uses build minutes.
- **Cancel:** a queued deploy is canceled at once, a running one stops at its next step and its build is removed. The Project keeps what it had before the deploy; nothing is left half done.

To roll back only the frontend, use [Roll back to the previous version](https://docs.ariaservice.net/en/baas/sites#rollback) on the Site's page. Migrations do not roll back; write a new migration to undo a database change.

## The deploy page and log {#deployment-page}

**Details and log** («جزئیات و Log») of a deploy shows:

- The commit (message, author and a link to it), branch, **source** (push, pull/merge request, manual, redeploy or promote), creation time, duration and **build time**.
- **State:** queued, building, deploying, ready, failed, canceled or superseded; while running, the current step.
- **Steps:** what was read (number of migrations and functions, whether there is a config.toml), the migrations that ran, the settings changed and the functions deployed.
- The **live log** of install and build; tokens are replaced with `[redacted]`.
- For a failed deploy, the reason in Persian with the service's error text below it ([errors](#errors)).

The 200 newest deploys of a Project are kept.

## Commit status {#commit-status}

Every deploy sets a status named `arianet/baas` on its commit: `pending` when it starts and `success` or `failure` when it ends, linked to the deploy's page in the panel. Pull/merge requests show the same status, so you can require it before merging on GitHub or GitLab.

## Build settings and variables {#build-settings}

**Connection settings** («تنظیمات اتصال», or **Change connection** for a token connection) holds:

| Setting | Notes |
|---|---|
| **Production branch** | Empty: the repository's default branch |
| **App directory (root directory)** | In a monorepo, this app's folder; every other path is relative to it. Empty: the repository's root |
| **Previews** | On or off |
| **Build the frontend and publish it to a Site** | Off: only the backend (migrations, functions and config.toml) is applied |
| **Site name** | The Site the build is published to; created with SPA fallback on when missing |
| **Package manager** | Automatic (from the lock file), npm, pnpm or yarn |
| **Install command** / **Build command** / **Output folder** | Empty: detected automatically |
| **Build environment variables** | Name and value, such as `VITE_API_URL` |
| **Backend paths in the repository** | Migrations (`arianet/migrations`), functions (`arianet/functions`), the config file (`arianet/config.toml`) |

- **Build environment:** Node.js 22 with npm, pnpm 9 and yarn 1. Each build runs isolated, with no access to the repository token or the Project's keys.
- **Build variables are not secret** and are shown in the console; never put passwords, the Service Key or server keys there. Whatever the build sees is published in the frontend code.
- `ARIANET_BAAS_URL` and `ARIANET_BAAS_ANON_KEY` (this Project's endpoint and anon key) and `CI=1` are set automatically. A framework that only passes prefixed variables to browser code (such as `VITE_` or `NEXT_PUBLIC_`) does not see these two; add build variables such as `VITE_BAAS_URL` and `VITE_BAAS_ANON_KEY` with the values from [API Keys and Connect](https://docs.ariaservice.net/en/baas/api-keys) (the anon key is made for browser code).
- Setting changes apply from the next deploy.

## Build limits {#limits}

The **Builds this month** («Build در این ماه») card shows the minutes used and the Plan's limits. Build time counts from the start to the end of each build.

The Plan sets the build minutes a month, concurrent builds per Project, the time limit of one build, the build resources (CPU and RAM) and the previews per Site; your plan's values are shown on this card.

- If the minutes limit is hard (depending on the Plan), once the month's minutes are used up builds do not run until the next month (`build_minutes_exhausted`). Deploys without a Site (backend only) use no build minutes.

## Disconnect the repository {#disconnect}

**Disconnect** («جدا کردن», type the repository path to confirm): the webhook is removed from the repository, queued deploys are canceled, every preview is removed and later pushes no longer deploy. The published Site, the Database, the functions and the deploy history stay, and you can connect again later. If the webhook cannot be removed, the panel tells you to delete it in the repository's settings yourself.

**Change repository** (one-click) or changing the host and repository (token connection) removes the old webhook and registers one on the new repository.

## Permissions {#permissions}

- Seeing the Git and Deploy page needs `baas:view`; connecting, changing, disconnecting, deploy, redeploy, cancel, promote and deleting previews need `baas:git:manage` ([Members](https://docs.ariaservice.net/en/baas/platform#members)).
- **Each deploy runs with the permissions of the member who last saved the connection**, and only those a deploy needs (Site, functions, Auth settings, SQL and Cron, buckets). The Git page lists them. If that member lacks one a step needs, the step fails with `forbidden`: git never gives anyone more than they had. Save the connection again as a member with enough rights.
- Every connect, change, deploy, promote and disconnect is recorded in the account's activity log (never a token).

## From the terminal {#cli}

```bash
arianet baas git connect --provider github --repo acme/shop --token-file token.txt --site shop
arianet baas git status                        # repository, webhook and this month's build minutes
arianet baas git deployments
arianet baas git deploy --branch feature/checkout --follow
arianet baas git logs <deployment-id> --follow
arianet baas git promote <deployment-id>
arianet baas git redeploy <deployment-id>
arianet baas git cancel <deployment-id>
arianet baas git previews                      # and previews rm <alias>
arianet baas git update --production-branch main --build-command "pnpm build"
arianet baas git disconnect
```

One-click connect is done in the panel only; `git connect` in the CLI uses a token. Every flag: [the `arianet baas git` reference](../cli-reference/baas.md#arianet-baas-git).

### `arianet baas push`: the same deploy without git {#push}

```bash
arianet baas push --dry-run     # what would change
arianet baas push
arianet baas push 12 --dir apps/shop --skip-functions
```

Applies a directory's backend in the order a git deploy does: the migrations not applied yet (in one transaction), the differences of `config.toml`, and the functions. Everything is checked before anything changes. The Site is not part of `push`; publish it with `arianet baas sites deploy`. Unlike a git deploy, a failure part way does not undo the steps before it (migrations are still one transaction). [The `arianet baas push` reference](../cli-reference/baas.md#arianet-baas-push)

## Errors {#errors}

### Errors of a deploy {#deploy-errors}

| Code | Meaning and fix |
|---|---|
| `invalid_repository` | The repository's layout is not valid: over 2,000 files or 64 MB in the backend paths, or wrong paths. |
| `invalid_config` | `config.toml` has an error (unknown key or bad value); the line number is in the error text. |
| `invalid_function` | A function's bundle could not be built; check the entry file and the imports. |
| `migration_changed` | The text of a migration that already ran has changed; restore the file and put the change in a new one. |
| `migration_failed` | Running the migrations failed and **none was applied**; the SQL error is in the log. |
| `forbidden` | The member who saved the connection lacks this step's permission; save the connection again with enough rights. |
| `project_not_active` | The Project was paused by its owner; resume it in [Settings](https://docs.ariaservice.net/en/baas/settings#pause) first. |
| `build_failed` | Install or build failed; see the log. Try `npm ci && npm run build` on your own machine once. |
| `build_timeout` | The build ran past the Plan's time limit. |
| `build_out_of_memory` | The build ran out of memory; make it lighter or take a bigger Plan. |
| `build_minutes_exhausted` | This month's build minutes are used up; wait for next month or upgrade the Plan. |
| `builds_unavailable` | Builds do not run in this Region yet; a connection without a Site (backend only) works. |
| `fetch_failed` | Fetching the code from the repository failed; check the token and its access. |
| `git_reauth_required` | Arianet's access on GitHub or GitLab expired or was revoked; [reconnect](#revoke). |
| `upload_failed` / `build_lost` | Uploading the build output failed or the build was lost midway; deploy again. |
| `bucket_refused` | One of the buckets in `config.toml` was refused (for example, over the Plan's limit). |
| `storage_unavailable` | Storage did not answer; deploy again shortly. |
| `disconnected` / `canceled` | The repository was disconnected midway / the deploy was canceled. |
| `deployment_failed` | Another failure; see the log. |

In every case the Project keeps what it had before the deploy.

### Errors when connecting {#connect-errors}

| Code | Meaning and fix |
|---|---|
| `repository_permission` | You need the Admin or Maintain role (GitHub) or Maintainer (GitLab) on the repository, and on GitHub Arianet's app must be installed on it. |
| `repository_unreachable` | The repository was not found; check its path and the token's access to it. |
| `repository_token_refused` | The token is wrong, expired or revoked. |
| `repository_token_permission` | The token lacks permissions; give it [the ones needed](#self-managed). |
| `branch_not_found` / `path_not_found` | The branch or the app directory is not in the repository. |
| `git_host_unavailable` | The git host does not answer; try again shortly. |
| `git_host_not_allowed` | Connecting to this git host is not allowed (for example, the server is not reachable from the internet). |
| `git_connected` | A repository is already connected to this Project; use "Change repository". |
| `oauth_state_invalid` / `oauth_denied` / `oauth_exchange_failed` | The connection expired, access was not approved on GitHub or GitLab, or the approval did not complete; start again. |
| `git_account_in_use` | This linked account is still used by a Project; disconnect that Project's repository first. |
| `git_oauth_unavailable` | One-click connect is not on in this Region; connect with a token. |
| `deployment_running` / `deployment_finished` / `not_a_preview` | A deploy of this commit is running; a finished deploy cannot be canceled; only a ready preview can be promoted. |

- **Webhook not registered:** if the Git page says "Webhook not registered", pushes do not deploy by themselves. Check the token's webhook permission and save the connection again; until then **Deploy now** works.
- **The return page says "this connection has expired":** the browser does not remember the connection (another tab, or after closing the browser). Start the connection again from the Git and Deploy page. In a private browser window where temporary storage is blocked, one-click connect does not work.

## Not supported yet {#not-yet}

One-click connect for GitHub Enterprise and self-managed GitLab (connect with a token); a cache between builds; build environments other than Node.js; several Sites in one connection; reviewing and approving `config.toml` changes before they apply; automatically deleting a function, bucket or Cron job taken out of the repository; server-side rendering (SSR).
