---
title: Deployments
seo:
  title: "Deployments: production and previews"
description: A deployment is the result of one build. It goes to production or to a preview, and it has a status and a URL.
---

<Illustration name="deployments" />

## Production and preview

| Push to               | Deployment            | Worker            | URL                                                         |
| --------------------- | --------------------- | ----------------- | ----------------------------------------------------------- |
| The production branch | Production deployment | Production Worker | Your custom domains and the `workers.dev` URL of the Worker |
| A different branch    | Preview deployment    | Preview Worker    | One URL for each branch                                     |

Each push to a branch updates the deployment of this branch.

## The preview URL

Each branch gets its own address on the preview Worker:

```txt
https://<branch>-<project>-preview.<your-subdomain>.workers.dev
```

For example, the branch `login` of the project `shop` is at `https://login-shop-preview.acme.workers.dev`. If the branch name has characters that a URL cannot have, Conic changes them to dashes and adds a short code at the end.

Conic posts the preview URL on the pull request and sets the commit status. The URL is also in the **Deployments** list of the project.

## The status

| Status               | Meaning                                                                                                    |
| -------------------- | ---------------------------------------------------------------------------------------------------------- |
| Building             | The build runs. The build log shows the progress.                                                          |
| Ready                | The deployment is live.                                                                                    |
| Failed               | A step failed. The build log shows the error.                                                              |
| Canceled             | A person stopped the build. Conic deployed nothing.                                                        |
| Waiting for approval | The commit is from a person outside your workspace. See [Commit approvals](/deployments/commit-approvals). |

## The actions

From the **Deployments** list, you can do these actions on a deployment:

- **Redeploy**: build the same commit again.
- **Cancel**: stop a build that runs. Conic deploys nothing.
- **Promote to Production**: build the commit of a preview for production. See [Promote and rollback](/deployments/promote-and-rollback).
- **Instant Rollback**: make an older production deployment live again, with no build.

## Data in previews

By default, each binding of a preview uses an empty preview resource. All previews of the project use the same preview resource, not one for each branch. A preview cannot write to your production data. You can change this for each binding. See [Bindings](/projects/bindings).
