> ## Documentation Index
> Fetch the complete documentation index at: https://docs.recasaos.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy an app from git

> In the + menu, From a git repository: the box clones it, deploys it, and follows a branch or the latest tag, with rollback and webhooks.

An app can come from a git repository that holds its compose file. The box clones it, builds and deploys it, and follows it: new commits or new tags are rebuilt without stopping the running version, and a version that does not start is rolled back.

## Deploy one

In the **+** menu of the app grid, **From a git repository…**:

* **Repository URL**, then the **Mode**: **Follow a branch** (empty: the repository's default branch) or **Follow tags** (a **Tag pattern** such as `v2.*`; pre-releases on request).
* **Access**: a public repository needs nothing; otherwise a **Deploy key** (add the key shown to the repository, read only) or an **Access token**.
* Give the **App name**, then **Next**: the following screens review what will run and deploy it.

> [!WARNING]
>
> Services that reach beyond their own container run with the rights the repository gives them. Deploy only from a repository you trust.

`COMPOSE_FILE` and `COMPOSE_PROFILES` in the repository's `.env` choose the compose file and the profiles, as with `docker compose`.

## Follow it

The app's **Repository** tab shows what is deployed and when the box last checked (every five minutes). **Check now**, **Fetch and rebuild**, **Deploy a tag…**, and **Revert to this version** in the last deployments. **Automatic rebuild** deploys what a check finds; it runs whatever is pushed or tagged.

## Webhook

Turn on **Check on every push** to get a webhook address and secret for GitHub, Gitea, Forgejo or GitLab: the box then checks at once instead of waiting for the five-minute check. The forge must be able to reach the box.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.