---
title: "Keep development separate from your live app"
description: "Every Hercules app keeps production apart from development. New development backends are deprecated, so test changes on branches with their own backend."
---

# Keep development separate from your live app

Every Hercules app has two environments. Production is your live app, and Development holds test backends, each with its own database, secrets and address, so experiments stay away from real customer records.

Creating new development backends from the Hosting tab is deprecated in favor of [branches](/features/branches), and Hercules will remove the option. Existing ones keep working, and everything below applies to them. For new work, build the change on a branch.

- **Separate data.** A development backend has its own database, apart from production.
- **Separate secrets.** Only secrets scoped to Development reach it.
- **Replaced by branches.** Each new branch gets a development backend of its own.

## What does keeping development separate give you?

### Test against data that doesn't matter

A development backend starts with an empty database, so a schema change can fail without changing production records. When you need real records, Clone data from production restores a snapshot into it and replaces what was there. [Environments](https://hercules.app/docs/apps/environments)

### Keep live keys out of tests

Secrets scoped only to Production never reach development, so a test can't message real customers through your live key. Add the same key twice, once per environment, to give each one its own value. [Secrets](https://hercules.app/docs/apps/secrets)

### Keep test traffic off production

Each development backend has its own URL, so frontend requests from development don't reach the backend your customers use. Backend analytics on the Hosting tab shows each backend's calls separately. [Environments](https://hercules.app/docs/apps/environments)

### Pause a backend you aren't using

Pause stops a development backend's functions and scheduled jobs but keeps its data, and it works on branch backends too. Resume first runs the code it had when you paused it, and Hercules pushes newer code at the next dev session. [Environments](https://hercules.app/docs/apps/environments)

### Clean up old development backends

Delete a development backend from its menu on the Hosting tab. Deleting permanently removes its database with no undo, so export anything you need first. [Environments](https://hercules.app/docs/apps/environments)

## How do you test a change now that branches replace development backends?

### 1. Start a branch

Open your app's preview so the main dev session runs, then click the branch icon next to New Chat. Turn on Replicate production data if the test needs real records.

Hercules creates the branch with its own development backend.

### 2. Describe the change

> Rename the "status" field on work orders to "stage" and move every existing work order to the matching new value.

Hercules changes the schema on the branch's backend. Check the result in the branch preview against your copied records.

### 3. Merge and publish

Click Merge once the change works.

Hercules merges the branch, then deletes its backend and database. On the default setup, backend changes go live the next time your main dev session starts, so publish soon after. If your app has a development backend, Publish sends them to production instead. [Branches](https://hercules.app/docs/apps/branches)

## What could this look like for a trucking company?

In this hypothetical example, a regional trucking company with 200 drivers tests a fuel-card integration on a development backend with a test key. Test transactions stay out of the live fuel records the office reconciles. Once the integration ships, the operations lead pauses that backend and keeps its test data.

## What should you know about environments?

- Each app has one production backend and up to five development backends. [Environments](https://hercules.app/docs/apps/environments)
- You can't pause or delete production from the Hosting tab.
- Branch backends have no Delete option, so pause one you no longer need.
- Scheduled jobs on a branch send real emails and messages, so ask Hercules to remove them on the branch before you test. [Branches](https://hercules.app/docs/apps/branches)
- Moving a backend to another region needs a paid plan, and only organization owners and admins can do it. [Backend](https://hercules.app/docs/apps/backend)
- See what each plan includes on the [pricing page](https://hercules.app/pricing).

## Related features

- Use [Hosting](/features/hosting) to run your live app's backend when you need production itself.
- Use [Branches](/features/branches) to see every file a change touched in Code diff when you want to review it before merging.
- Use [Secrets](/features/secrets) to scope each key to an environment when production and development need different values.

## How do you get started?

Start a branch from your app's chat to test a change away from production. The [Environments guide](https://hercules.app/docs/apps/environments) covers the development backends you already have. Start building.

## Frequently asked questions

### Does merging a branch copy its data into production?

Merging a branch brings over its code and schema changes only. Data in the branch's database never reaches production.

### Can I rename an existing development backend?

You rename a development backend from its actions menu on the Hosting tab. Click Edit to change its display name and reference.

### Why can't I resume a paused backend?

Resume appears only for backends you paused yourself. A backend Hercules paused for a negative balance resumes once you add credits, and for any other pause, contact support.

### Which region does a development backend use?

A new development backend defaults to your organization's region unless you pick another when you create it. [Environments](https://hercules.app/docs/apps/environments)

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Does merging a branch copy its data into production?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Merging a branch brings over its code and schema changes only. Data in the branch's database never reaches production."
      }
    },
    {
      "@type": "Question",
      "name": "Can I rename an existing development backend?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "You rename a development backend from its actions menu on the Hosting tab. Click Edit to change its display name and reference."
      }
    },
    {
      "@type": "Question",
      "name": "Why can't I resume a paused backend?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Resume appears only for backends you paused yourself. A backend Hercules paused for a negative balance resumes once you add credits, and for any other pause, contact support."
      }
    },
    {
      "@type": "Question",
      "name": "Which region does a development backend use?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A new development backend defaults to your organization's region unless you pick another when you create it. Environments"
      }
    }
  ]
}
```
