For app publishers

Dev address

A second address running another branch, for trying things out.

What this is

A dev address is a second copy of your app on its own web address, where you can look at new work before your colleagues see it. It is meant for trying things out. The live app is not touched.

A branch is a separate line of work in the app's code. The main branch is what normally goes live. A dev address follows a branch of your choice and rebuilds by itself every time new work is saved to it. A saved step in the code is called a commit.

Where to find it

  1. Open the Apps page and click your app.
  2. Switch to Advanced at the top of the app page.
  3. Click the card Build & deploy, then Dev address.

This page is in the Advanced view. When your app already has a dev address, the Simple view lists Dev address under Also in use on this app.

What you see

Without a dev address, a card called Give this app a dev address. It explains what you get: its own container (the sealed box the app runs in) and its own empty database, so it can never write your real data. The same sign-in and access list apply, so only people who may open the app may open this copy. It cannot send email until you allow it. You can throw it away at any time. The card has Branch to follow and the button Switch on the dev address.

With a dev address, a card called Dev address with:

  • A status pill, for example running, spinning up or failed.
  • Copy link: the address to send to whoever should look at the app. They sign in as themselves.
  • A notice with extra detail when the dev address is busy or has a problem.
  • Branch it follows with a box and Save. A line under it says which branch it is building from and the code of its last deploy.
  • A line explaining that the dev address uses the same values as the live app. A value that this branch introduces, or one that must be different here (a test key, for example), gets a dev value of its own on the Variables or Secrets page.
  • A tick box Let the dev version send real email.
  • The buttons Deploy now, Stop (only while it runs), Start over with empty data and Remove dev address.

Approval addresses for a change is a second card on this page. It lists the temporary addresses made for Changes waiting for you. Each row shows Change #…, a status pill (live, spinning up, expired or failed), the time left, Copy link, the branch it follows, how long its window is and a Feedback link. When none exist, the card explains how to make one.

How to switch on a dev address

  1. In Give this app a dev address, look at Branch to follow. Leave it empty to follow the same branch as the live app. The box shows which branch that is. Or type the name of another branch.
  2. Click Switch on the dev address.
  3. A message says Dev address created — the first build has started. The status pill shows progress, from spinning up to running.

The address is the app's short name followed by --dev.

How to share it

  1. Click Copy link.
  2. Send the link. Whoever may open the app can open it. Nobody else can.

How to follow another branch

  1. Type the branch name in Branch it follows.
  2. Click Save. A message says Saved — rebuilding from that branch.

From now on, every new commit on that branch is deployed to the dev address by itself.

How to redeploy it by hand

  1. Click Deploy now.
  2. A message says Deploy started.

Use this after you saved new values, when the card says The dev address is still running the previous configuration. Deploy to apply the saved values.

How to let it send real email

  1. Tick Let the dev version send real email.
  2. A message says Saved.

It is off by default. While it is off, email from the dev address is refused and logged, never delivered. A preview would otherwise email real colleagues about something nobody has approved. Leave it off unless you are sure.

How to start over with empty data

  1. Click Start over with empty data.
  2. A window asks Wipe the dev database and rebuild it empty? It tells you only the dev copy is affected. Click Wipe dev data.
  3. A message says Dev data wiped — rebuilding.

How to stop or remove it

  • Stop switches it off for now. The message says Dev address stopped.
  • Remove dev address: a window asks Remove the dev address? It tells you its container, data and database are deleted, and that the live app is untouched. Click Remove dev address. A message says Dev address removed.

How to see an approval address for a change

  1. Open Changes and click Spin up for approval on a change. This is in the Advanced options.
  2. Come back here to see it listed under Approval addresses for a change, with its time left.
  3. Click Copy link to share it.

They end by themselves. Several can be live at once. Each address contains the change number.

When something looks wrong

  • The status is failed: the build or start did not work. Open Deploys & logs. Pick The dev address in the list above the runtime log, or click Log on its row in Deploy history.
  • A notice that the dev address is paused until its required variables have a value: give the missing values a dev value. The live app is not affected. See Variables.
  • A new version is being spun up in the background — the one people are using stays up until it is ready. It is building. Wait.
  • The new version never came up, so nobody was moved to it — the version that was live is still serving. The new build failed. The older one still works.
  • Approval addresses: expired means the time is up. Spin up the change again from Changes. failed means it did not start. Try again.

Good to know

  • Only people who manage the app can use the dev address.
  • Its data is throwaway. It is not backed up. See Backups.
  • It never writes to your real database and never touches the live app's files.
  • Removing it deletes its container, data and database, and cannot be undone. You can switch it on again later.
  • An approval address ends by itself after the time you chose.