Every place, step by step
Add where your product runs (a server, a web page, an Android or iOS app), connect it, and choose how each new version gets there, with what each screen shows.
A place is one thing that runs your product and reports to Controxity: a server, a web page, an app in Google Play or the App Store. Each place has a key, a part of the product it runs, and a way new versions get to it. This page walks through all of them with the screens you'll see. Everything is done on the page; the only commands are one line each, to copy, for what runs on your own machines.
The pictures show a made-up shop, Basket, with a server (basket-api), a web shop (basket.example) and a phone app on both stores.
Before you start#
- The product is added. On Today, Add a product: its name and its code's
https://address. See Your first error in 5 minutes. - It has a controxity.yml. Its Connect steps show the file written from your code, or open it as a pull request when the code is on GitHub, GitLab, Bitbucket or Azure DevOps. A deploy command in it (
deploy: production:) is what the helper and Deploy command, run here run.
1. Add the place#
Open the product, then Where it runs → Add a place it runs:
- production or staging
- What is it? Server, Web, Android or iOS
- Part, when the product is in parts: leave it on "guess from its name" (a place called
… webruns the web part, Android or iOS the phone part, anything else the server part), or choose it - Name, as you'd say it:
basket-api,basket.example,Google Play
Press Add.

The place's key is shown once. A server key starts with dep_: it stays on your server and never goes in a page or an app.

Lost it? The place's Setup has New key (the old one stops at once).
2. Follow its Setup#
Under the places, Setup lists what each place still needs, in order. A step done in Controxity is a button; a step done on your machine is one line with Copy. Each step ticks itself when Controxity sees it done, and Today shows any place that isn't set up yet, with Finish setup.
A server#

- Put its key where it runs, and start the SDK. Put the two lines in the server's
.env(or environment). The SDK is one file, kept with your code:
curl -fsSL https://controxity.example.com/sdk/node.js -o controxity.jscurl -fsSL https://controxity.example.com/sdk/python.py -o controxity.pyUse your Controxity's address. Then start it as early as the server starts: see Node.js or Python. The step ticks when the server first reports.
- Say which version it runs. The SDK reads
CONTROXITY_VERSION, or the filecontroxity deploywrites when the helper deploys. It ticks when a version arrives. - Choose how a new version gets there. Press Our team does it to keep deploying as you do now, or Controxity's helper does it. The other ways are in step 3 below.
- With the helper: Run the helper on the server. One line, in the product's folder on the server. It installs the helper as a service that asks Controxity for work every minute, with the key from the app's
.env.

A web page#
A page gets a browser key (pub_): it can only send, so it's safe in a page.

- Put the browser SDK in the page. Press Make a browser key, then copy the two lines into your HTML, before your own scripts. The SDK loads from your Controxity. It ticks when the page first reports. More: Browser.
- Say which version the page is, in that init line: your build's version or git commit.
- Choose how a new version gets there, as for a server.
An Android app#

- Choose who makes each new version. Controxity's helper does it (it builds each version on a machine you choose), or Our team does it (Controxity sees the version when phones report it).
- Say how phones get it. Read from your code: an app without
expo-updates(or EAS Update) gets store builds, one with it over-the-air updates. Press the other button if that's wrong. See the next section. - Run the helper where the app is built. Press Make the install command: it gives the place a new key and makes one line with it and your build command (
scripts/build-play.shorscripts/build-android.shwhen you have one). Run it on the machine that builds the app (yours, a build server, any machine with the app's toolchain), in its git checkout. It needs no access to GitHub or GitLab: when it can't fetch a version's commit from them, it gets it from Controxity's copy of the code with its key. The helper keeps that key in a file only you can read. The helper keeps itself up to date: when Controxity has a newer helper, it takes it between jobs by itself. To move it to another machine, press Make the install command again (in Setup, or Make the install command under How new versions get there) and run the new line there. Each build's file (.aab,.apk,.ipa) is sent to Controxity, so anyone on the team downloads it from Releases, from any computer: nothing has to be fetched from the build machine.

- Send the app's crashes through your server. No key goes in the app: it posts its crashes to your own server, which passes them on with
controxity.captureClient(...). See Phone apps. - Tell Controxity which version phones run, with
controxity.clientVersion(...)on your server. Then a fix shows as running on phones, not only shipped. - Optional: Google Play's own crash reports (crashes only Google sees). A read-only service account, then Product settings → Phone and desktop → Google Play. They come in on this place.
An iOS app#
The same steps as Android, without Google Play. Where the helper runs depends on how the app is built:
- An Expo app built on EAS (an
eas.jsonwith aproductionprofile, and no build script): any computer, Linux too. The build happens in Expo's cloud: the install line's build command isnode "$CONTROXITY_CLI" eas-build ios --dir app. Once, first: Expo's robot token in the app's.envasEXPO_TOKEN=..., and the signing set up on EAS with onenpx eas-cli build -p iosby hand. See iOS without a Mac. - Built with Xcode: a Mac with Xcode and the signing certificate, and your
scripts/build-ios.sh.
Either way the .ipa comes to Controxity: download it from Releases and upload it in App Store Connect (or send it to TestFlight from there). If the app has over-the-air updates, the same helper publishes them for iPhones too: your update script gets CONTROXITY_PLATFORM=ios.
A new iPhone place's last two steps (crashes, versions) tick when an iPhone first uses the app: open your TestFlight build once. Until then the place isn't shown as not connected, since its helper asks for work every minute.

3. How a new version gets there#
Each place gets new versions one way, chosen under How new versions get there (or with the Setup buttons). Whichever way, a version counts as there once the place reports it: Controxity never guesses.
| Way | Choose it when | What it needs |
|---|---|---|
| The team deploys it | You deploy as you do now (by hand, your own CI, your host). | Nothing. Releases shows "deployed by its team" until the place reports the version. |
| Helper on the server | You want Deploy in Controxity to deploy it, on a server you run. | One line on the server (Setup gives it). It runs the deploy: command from controxity.yml in a clean copy of the exact commit, waits for deploy: health:, and goes back if it isn't healthy. See Deploy. |
| GitHub Actions workflow | Your deploy already lives in GitHub Actions. | A workflow in the product's repository (Download a starting workflow), its file name and branch, and Controxity's GitHub App with Actions: Read and write. Controxity starts it with the version, commit and place, and follows its run. |
| GitLab pipeline | Your code is on a connected GitLab and deploys with a pipeline. | The branch. Controxity starts a pipeline with CONTROXITY_ID, CONTROXITY_VERSION, CONTROXITY_COMMIT and CONTROXITY_PLACE; your .gitlab-ci.yml runs its deploy job when they're set. The project must let Developers use pipeline variables (Settings → CI/CD → Variables). |
| Deploy webhook | Your host deploys from a hook (most platforms have one). | The hook's https:// address. Controxity posts {id, app, place, version, commit, repository}, signed: check the X-Controxity-Signature header (sha256= HMAC of the body with the secret shown once when you save). |
| Deploy command, run here | Controxity runs on the same machine as the product (not on a shared server). | The deploy: command for that channel in controxity.yml: Controxity runs it itself. |




The GitLab pipeline is offered only for a product whose code comes from a connected GitLab, and Deploy command, run here only when controxity.yml has a command for that channel.
Phones: updates, store builds, or both#
A phone place gets each version one of three ways, chosen next to the way it's deployed (Setup chooses it from your code):
- Updates, store builds when needed: the standard for an app with over-the-air updates (
expo-updatesor EAS Update). There's one button, Send to Google Play (or App Store), and Controxity chooses for each version: an update when it can carry the version (most changes: no store review, on phones within minutes), or a new store build when the version changes the app's native layer (a new permission, a native module, an Expo upgrade), and again for every version until phones run that build. If Controxity can't tell before publishing and the update's publish refuses (your publish script exits with 3 when the native layer changed), the helper makes the store build itself. - Store builds only: an app without over-the-air updates. Every version is a new build.
- Updates only: the helper only publishes updates; a version that needs a store build waits, and you build it yourself.
The helper runs where the app is built, with its signing key, and gets the commands its way needs: --update (your publish command, scripts/publish-update.sh when you have one, told "Version $CONTROXITY_VERSION") and --build (your store build, scripts/build-play.sh or scripts/build-android.sh, scripts/build-ios.sh for iOS, or an EAS build). Both run in the helper's own copy of the exact commit, never in your working folder, with CONTROXITY_VERSION, CONTROXITY_COMMIT and CONTROXITY_PLATFORM set, your .env and Firebase files copied in and the app's packages installed. Make the install command puts both in the one line. What each step does, and what a store build's app.json gets: Phone apps.
Your server first. When phones get their updates from your own server, Releases lists it as step 1, and each phone place as step 2, disabled until the server runs the version. Send to a phone place early and the version goes to the server first; the phones' turn comes by itself. A new phone place waits for the same server as the product's other phone place.
A store build's file (.aab, .apk, .ipa, and installers such as .dmg or .msi) is sent to Controxity: download it from Releases and upload it in Play Console or App Store Connect. The helper looks for the files the build just made in the build's own copy of the code, and for any file the build's output names by its full path (Ready: /home/me/builds/app-1.2.6.aab); if your build writes them somewhere else without saying where, add --files /path/to/builds to the install line. Each file can be up to 1 GB, and each place keeps the files of its last 3 builds. Behind a proxy with an upload limit (Cloudflare's is 100 MB on most plans), a bigger file stays on the build machine, and the helper says where.
Updates can roll out in stages (10% → 50% → 100%, stopped by itself when the new version looks worse). A store build's rollout is Play Console's or App Store Connect's.
4. Send a version#
Open Releases. The newest version lists each place that doesn't run it yet, with its button: Deploy to … for a server or a page, Build for Google Play… or Build for App Store… for a phone place with store builds. A place that runs it already isn't listed.

For a phone place with updates and store builds, the button is Send to Google Play… and Controxity chooses which. A production place asks for a yes first (Approvals), as your product's settings say. Then the place's line says how it's going:
- waiting for the helper, then deploying: the helper took it. It asks every minute.
- deployed: waiting for it to report it: done on its side; it counts once the place reports the version.
- built: upload it to the store, with Download for each file the build made. Download it, then upload it in Play Console or App Store Connect. (If the file couldn't be sent, the line says so, with the build's own last words: it's on the machine that built it. Build again makes it again and sends the file here.)
- deploy failed, with its reason, and Try again.

A few things the line also says:
- "1.2.3 is still building: 1.2.4 is next": you asked for a newer version while the helper was on another. It finishes that one, then takes the newer one.
- "the helper hasn't asked for it: is it running?": nothing has asked for the job in 3 minutes. Check the helper's service (
systemctl --user status controxity-<product>-<place>, assystemctl --user list-units "controxity-*"lists them). - Asking for the same version twice isn't a failure: the second request ends as done.
Pushed new code and want its version now? Releases → Get the latest code (Controxity also looks every 5 minutes).
Today shows what's left#
Until every place is set up, Today lists each one with its next step and Finish setup. They're tips: they don't change the product's health.

Where to go next#
- Deploy:
controxity deploy, the helper, and controxity.yml'sdeploy:section. - Phone apps: crashes through your server, phone versions, store builds and staged updates.
- Browser: the browser SDK and its key.
- Versions: how versions are numbered, and how a place's version is known.