> For the complete documentation index, see [llms.txt](https://docs.devin.fm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devin.fm/guides/deployment-environments/connect-a-deployment.md).

# Connect a Deployment

{% hint style="info" %}
To setup a Deployment Environment for a Module, you must first add the server hosting it. See [Add a Server](/guides/servers/add-a-server.md).
{% endhint %}

## Guide

Then:

1. Go to Modules -> Environments
2. Select the desired Module from the list
3. Click Connect File and select the hosted file that you want to connect
4. Specifcy a Release Branch for the Deployment
5. Specify a version number for the Deployment

## Video Tutorial

{% embed url="<https://vimeo.com/938631001?share=copy>" %}
Connecting a `PRODUCTION` deployment (live hosted file) for each Module
{% endembed %}

{% hint style="info" %}
In Devin 1.1, Deployments are now Environments where deployed instances of a `fmp12` file  are linked to specific Release Branches. This allows you to specify custom deployment flows. For instance, you could link your `main` branch to your `production` server and a `test` branch to your `UAT/staging` server.
{% endhint %}
