Skip to content
HelicarrierDevelopers
DOCUMENTATION

Build & runtime settings

Control how a service builds and runs — root directory, commands, release command, and plans.

Most services deploy fine on defaults, but Helicarrier gives you precise control over how your code builds and runs when you need it. These settings live on the service’s build/settings panel.

  • Root directory — the subdirectory to build. Point this at a package inside a monorepo (for example, apps/web) and the build runs there.
  • Install command — override the detected dependency install step (for example, pnpm install --frozen-lockfile).
  • Build command — override the detected build step (for example, npm run build).
  • Start command — the command that launches your app (for example, node dist/server.js).
  • Dockerfile path — if you build from a Dockerfile that is not at the repo root, point at it here.

When these are left blank, Helicarrier detects sensible defaults for your framework.

A release command runs once before a new version starts taking traffic — after the image is built, before the rollout completes. It is the right place for database migrations and other one-time pre-launch steps. If the release command fails, the deploy stops before traffic switches to the new version.

Stopping the rollout does not undo database changes that the command already made. The current app can still be affected by an incompatible schema change. Keep migrations compatible with the running version, use transactions where supported, and inspect the database before recovering a failed migration. An application rollback also leaves the database schema unchanged.

The Prisma migration walkthrough demonstrates a failed release, database inspection, and recovery with a nullable schema expansion on disposable data.

On Helicarrier Cloud you size a service by picking a plan, not by hand-setting raw CPU and memory numbers. Each plan reserves a fixed amount of RAM and sets the service’s monthly price — the service’s plan picker shows a live monthly total as you choose.

Compute services (web, worker, private) use the Heli S plans:

Plan RAM Price
Heli S1 512 MB $3 / mo
Heli S2 1 GB $6 / mo
Heli S3 2 GB $12 / mo
Heli S4 4 GB $24 / mo
Heli S5 8 GB $48 / mo

How the plan maps to resources:

  • RAM is reserved — a hard guarantee. Pick the plan that fits your app’s memory footprint; if it consistently exceeds the plan’s RAM it can be restarted, so size up if you see out-of-memory restarts.
  • CPU is shared and burstable — compute services share CPU and burst when the host has headroom, so you are not billed per core. Need guaranteed CPU? Add the dedicated CPU add-on (guaranteed vCPU, billed on top of the plan).
  • You can change a service’s plan any time from its settings.

Managed databases have their own plans (Heli DB, CH, KV) that reserve CPU (so a database is never CPU-starved) and add storage — you pick one when you provision. See Provision a database.

Under Settings → Build, Read-only filesystem runs your service with its root filesystem mounted read-only. /tmp (512 MB) and /run (64 MB) stay writable as in-memory scratch space; everything else in the image is immutable at runtime.

New application services enable this setting by default; an existing service retains its own setting. A process cannot modify the image’s application files, and uncontrolled writes cannot fill its root filesystem. Check images that write cache files, uploads, or a SQLite database beside the code: those writes fail under a read-only root. Put persistent application data on a volume, and use the writable temporary directories for disposable scratch files.

It takes effect on the next deploy. Managed databases do not offer it; their storage is capped separately.

Some frameworks bake variables into the client bundle at build time (NEXT_PUBLIC_*, VITE_*, REACT_APP_*). Helicarrier makes your variables available during the build so these are embedded correctly. References to other services resolve to their internal addresses at build time. See Environment variables for how to set them.