# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devin.fm/guides/deployment-environments/connect-a-deployment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
