Skip to content

Hosting

Your factory. Your servers.

DevBench runs on a host you control and deploys to the cloud you already have: AWS, a server over SSH, or DevBench compute for previews.

What runs on your host.

DevBench runs in Docker on your machine. Code leaves it only when you deploy.

Your host · a machine with DockerControl planeClientsProxyDatabaseLive chatEncryption keyOne container per workspaceMobile pushif you want itWhere you deployonly when you deploy
Memory is the constraint
Idle workspaces and previews stop to free memory.
Invite-only
Your owner creates the organization and invites the team.
Model-agnostic
You choose the model. Nothing else depends on it.
What each part is

Outside

Clients
Web, desktop and mobile apps.

Your host, a machine with Docker

Proxy
Serves the web app and the editor, under the same access rules.
Control plane
Runs on your host in Docker. The chat updates live.
Database
Stores the control plane's data.
Live chat
Keeps the chat updating live.
Encryption key
You generate it. It encrypts stored tokens and credentials.
One container per workspace
Each has its own volume and editor. Idle ones stop to free memory.

Leaves the host

Mobile push
Optional. Without it, everything else still works.
Where you deploy
Code leaves the host only when you deploy it.

Deploys to the cloud you already have.

Previews run on DevBench compute, free and throwaway. Environments go to AWS or a machine you own.

Where should it run?

DevBench compute

Previews, free and throwaway.

Free previews for the whole team to test in.

What you need

  • The workspace's repos.

What DevBench does

  • Runs every repo as containers you can click through.
  • Replaced by the next deploy, stopped when idle.

Who may press it

  • Anyone can deploy a preview.

  • Agents can deploy previews, not environments.

devbench
  • $ devbench deploy

    Deploy this workspace's repos as live test containers. The same as the Deploy button.

A preview for every branch.

Every repo runs as a container you can click through. Each deploy replaces the last.

  • Throwaway
  • Free
  • Not public
  • Stopped when idle

Checked first. Updated, not recreated. Stopped, not deleted.

Preview runs on DevBench compute. Environments has one row per branch.

  1. Rule 1: Refusals happen before anything is created.

    Missing permissions show up first.

  2. Rule 2: A redeploy is an update.

    It updates the existing site or server, and never makes a new one.

  3. Rule 3: Stop does not delete.

    Stop marks the deployment stopped and deletes nothing.

Where a row can point, and who may press it
  • Deployed elsewhere, by default

    Your own pipeline deploys it. DevBench keeps the record.

  • DevBench compute

    Free previews the whole team can open and test in.

  • AWS or a provider

    A site or server on AWS, or a machine you reach over SSH.

  • An unknown target

    Fails with an error. It never falls back to DevBench compute.

  • Who may press what

    Anyone can deploy a preview. Changing an environment needs Can manage deployments. Agents can deploy previews, but they cannot change an environment.

DevBench never guesses how your app restarts.

Your team writes an update script for each environment. Without one, the deploy is refused.

What it brings that an SSH client does not
  • Host keys

    The host key is checked on every connection.

  • Stops at the first error

    A failed step stops the script before any restart.

  • Your commands

    Commands run as you wrote them.

  • One script for all

    The branch and environment are passed in, so one script serves them all.

an environment's update script
set -euo pipefail                       # DevBench adds this line
cd /srv/app
git fetch origin "$DEVBENCH_BRANCH"
git checkout -q "$DEVBENCH_BRANCH"
git pull --ff-only
npm ci && npm run build
sudo systemctl restart app             # yours: systemd, pm2, compose, make…

Connect AWS. Switch on what it may build.

Credentials identify DevBench in the account. Switches limit what it may build there: S3 and CloudFront, EC2, Lightsail, RDS, Elastic Beanstalk.

Set up AWS

What it may build

S3 static site
One bucket per site, behind CloudFront.
S3 shared site
Several sites in one bucket, each with its own CloudFront distribution.
Lightsail
Fixed-price instances and managed databases.
RDS
Managed Postgres, MySQL and MariaDB.
EC2
Plain virtual machines for any app server.
Elastic Beanstalk
Load-balanced, auto-scaling environments.

Use an IAM user's keys, or a role DevBench can assume.

Switching a capability on checks the account first

  1. Permissions are checked first, without changing anything.
  2. A read-only check, if needed. The result is a warning, never a pass.
  3. Missing permissions are listed as a policy you can paste.

After it is connected

Re-checked on a schedule. Each AWS connection is checked again on a schedule. A failure reaches the owners.

Resources. Lists what already exists in the account. Each item can be linked to the part of the app it serves.

devbench cloud
  • $ devbench cloud can

    What this workspace may do in the cloud, and how far.

  • $ devbench cloud list

    Deployments that already exist in your cloud accounts.

  • $ devbench cloud link <id> <repo>[/<dir>]

    Record which part a resource serves.

  • $ devbench cloud call <service> <Operation>

    One AWS call, made through DevBench.

A VPS you rent, or a provider's machines.

DevBench deploys to it the same way it deploys to an instance it created.

Connect a machine or a provider

What connecting asks for

SSH
Host, port, user, a key or a password
Hetzner Cloud
A workspace API token
DigitalOcean
A personal access token
Vultr
An API key
Supabase
Workspace URL, service role key, anon key
MongoDB
A connection string

The vendor accounts supply machines. You choose a size and region at deploy time.

A capability means the software is installed

Each capability is checked by running its tool. A missing package shows the command that installs it. Each needs systemd.

docker
A Docker Engine this user can talk to
nodejs
Node and npm
python_app
Python 3 and the venv module, a separate package on Debian
static_site
nginx, and certbot for automatic HTTPS
postgres
The Postgres client, and a server answering locally
SSH
Any machine you can reach over SSH
Hetzner Cloud
Supplies machines
DigitalOcean
Supplies machines
Vultr
Supplies machines
Supabase
A Supabase workspace
MongoDB
Atlas or your own mongod

One App, its repos, and how each runs.

An App groups the repos of one application. Each part has its own recipe: write it by hand, or let DevBench propose one.

Recipes, databases and commands

A proposal changes nothing until you apply it.

Databases and seed SQL. Each App owns its databases and seed SQL. Schema changes go in a migration.

devbench deploy
  • $ devbench deploy

    Deploy this workspace's repos as live test containers. The same as the Deploy button.

  • $ devbench deploy config list

    Every deployable part of this workspace and where it goes.

  • $ devbench deploy config generate

    Read a repo and propose how each part builds and runs.

  • $ devbench deploy config apply <id>

    Apply a proposal.

  • $ devbench deploy config set <repo> --start …

    Create or edit one part's recipe (add /<dir> and --build when it needs them).

  • $ devbench deploy seed set --file <path>

    Replace the seed data.

Set up with you

Start with one real project.

We set up your factory and ship one project from your roadmap.