Git source directory

Published

Updated

📁

Which repo folder to deploy.

The Git source directory sets which folder of the Git repository a fortrabbit environment deploys. Leave it empty for the repository root, or name a subfolder to deploy one project out of a monorepo.

The Git source directory is part of the deployment settings of an environment. Empty means the repository root, which fits most apps. Exclude and replace patterns start from this folder.

When the repository contains a deploy file, this setting is managed there and cannot be edited in the dashboard.

Use cases

A monorepo holds several projects in one Git repository. Each environment deploys one of them, for example apps/website-1. The root path is then relative to that folder.

Written by a human. Review, grammar checks and typo fixes by AI.

AI use & editorial processEdit on GitHub ↗