---
title: "Deploy To Fly.io"
description: "How to deploy web sites and web apps built with LaunchFast starter kits to Fly.io?"
source: "https://www.launchfa.st/documentation/deployment/fly"
---

> **Site index for agents**
> Fetch https://www.launchfa.st/llms.txt to discover every page on this site.
> Every page is also available as Markdown by appending `.md` to its URL.

import { Steps } from '@astrojs/starlight/components'

<Steps>

1. Deploy to [Fly](https://fly.io) with the following:
    
    ```bash
    fly launch && fly deploy
    ```
    
    If you do not have an existing Fly project, this command will help you set up one.

2. Next, set all the environment variables from your local `.env` file to Fly infrastructure via the following command:

    ```bash
    fly secrets set VAR_NAME=VAR_VAL
    ```

3. Finally, deploy to Fly (again) with the following:
    
    ```bash
    fly launch && fly deploy
    ```

4. Now that's set up, you can deploy in future iterations only by executing the command once.

</Steps>
