Skip to content

Latest commit

 

History

History
296 lines (230 loc) · 8.16 KB

deployments.md

File metadata and controls

296 lines (230 loc) · 8.16 KB

Deployments and manifests

adios up reads an adios.yaml or adios.yml file, packages the selected source, runs preflight checks, builds an artifact, and deploys the workload. The manifest is the repeatable description of that workload.

A minimal manifest

name: orders-api
type: api
runtime: node@24
build_cmd: npm ci
start_cmd: node server.js
port: 8080
env:
  NODE_ENV: production
  PORT: "8080"

Commands are shell strings. Use YAML block scalars for multi-step commands:

build_cmd: |
  npm ci
  npm run build

Keep the application bound to 0.0.0.0 and make its listening port agree with port or runtime.port.

Common manifest fields

Field Purpose
name Stable human-readable workload name
type Workload category, such as app, api, or web
runtime Runtime name or detailed runtime configuration
build_cmd Install dependencies and produce the deployable application
start_cmd Start the production process
release_cmd Run release-time work such as database migrations
health_cmd Check process health from inside the runtime
port One listening port or a list of ports; the first is primary
env Non-secret environment values and secret:// references
secrets Secret declarations, including generated secrets
pkgs Operating-system packages required by the build or runtime
replicas Replica count in each selected region
region Primary deployment region
regions Ordered set of deployment regions
domain Verified custom hostname for the workload
resources Managed or attached backing services
source.includes Additional local or Git-backed build sources
projects Multi-project discovery, deployment mode, and dependency rules

The CLI may add app_id, team_id, workspace_id, and managed resource IDs after platform objects are created. Keep those values if the manifest should continue targeting the same objects.

Run adios init to generate a detected starting point. Review the result before deploying; framework-specific start and build commands still need to match the application.

Detailed runtime settings

Use the compact form when only a runtime is needed:

runtime: go@1.25

Use a mapping for resource limits, readiness, runtime environment, or volumes:

runtime:
  name: go@1.25
  port: 8080
  cpu: "1"
  memory_mb: 1024
  disk_mb: 2048
  health_path: /healthz
  readiness_timeout_seconds: 60
  env:
    GOMAXPROCS: "2"
  volumes:
    - name: uploads
      target: /app/uploads
      persistent: true

Use start_cmd for the process command rather than putting a command under runtime.

Secrets in a manifest

Declare a generated secret, then reference it from the runtime environment:

secrets:
  SESSION_SECRET: secret://generate:64
env:
  SESSION_SECRET: secret://SESSION_SECRET

Do not put a real secret value in the manifest. Existing team secrets can be referenced directly with secret://NAME. See Resources and routing for secret-management commands.

Choose what to deploy

From the manifest directory:

adios up

Select another manifest or source directory explicitly:

adios up --file config/production.adios.yaml
adios up --path ./services/api --file ./services/api/adios.yaml

Deploy source from a remote Git repository:

adios up --repo git@github.com:example/orders.git --branch main

When --repo is used, uncommitted local changes are not included. Without it, the CLI packages local source so current working-tree changes can be deployed.

Useful deployment controls include:

adios up --no-cache
adios up --timeout 20m
adios up --region de,nj
adios up --no-save

The maximum deployment timeout is 30 minutes. --no-save prevents the CLI from persisting resolved IDs back into the manifest; use it only when that is intentional.

Source exclusions

When the project is inside Git, the CLI respects .gitignore. It also excludes common generated and dependency directories such as .git, node_modules, .next, dist, build, coverage, and cache directories.

Add .adiosignore to keep additional local files out of deployment archives:

# Development-only files
Dockerfile.local
fixtures/*
*.local.json
!fixtures/deployment-example.json

The syntax follows .gitignore, including comments, directory patterns, and ! negation. An .adiosignore rule only adds exclusions: it cannot re-include a file already excluded by .gitignore, build.excludes, or a platform safety default. Nested .adiosignore files are supported.

Use the ignore-rules example as a starting point.

Detected local dependencies

Before a deployment or workspace creation, the CLI checks common manifests for undeclared local dependencies, including Go workspace and replacement paths, Node workspace and file dependencies, Cargo paths, Python and Poetry paths, .NET project references, and Ruby paths.

In an interactive terminal, choose whether to persist, include once, or skip a suggested source. A non-interactive invocation fails with a suggested manifest change instead of silently omitting source. To include every detected source for one invocation:

adios up --include-detected-sources

Persist the required source in source.includes for a reproducible build.

Shared source graphs

Paths in source.includes are relative to the manifest:

source:
  includes:
    - path: ../shared
    - alias: proto
      path: ../proto
      repository_url: git@github.com:example/proto.git
      branch: main
      repository_path: .
      mount: proto

Git metadata is inferred from the local checkout when omitted. Credentials are not written into the manifest or the uploaded source graph. If the primary project and a shared directory already belong to the same Git repository, that repository is packaged once and the extra include is unnecessary.

See the shared-source example.

Multi-project repositories

The CLI discovers manifests recursively, allowing independently deployable applications in one tree:

my-project/
├── adios.yaml
├── api/
│   └── adios.yaml
└── web/
    └── adios.yaml

Use the root manifest to give projects stable aliases, choose their deployment mode, and declare ordering:

name: my-project-root
type: app
runtime: node@24
start_cmd: node server.js
port: 8080
projects:
  orchestrator:
    path: .
    deploy: disabled
  api:
    path: api
    deploy: auto
  web:
    path: web
    deploy: auto
    depends_on: [api]

deploy accepts auto, manual, or disabled. A selected project includes its transitive dependencies, including dependencies marked manual. The root file remains a valid workload manifest even when its own project is disabled from aggregate deployment.

Deploy every automatic project or select one by alias, path, or manifest:

adios up
adios up web
adios up api/adios.yaml
adios up --file web/adios.yaml

Independent projects deploy concurrently. The default concurrency is four; change it with --parallel:

adios up --parallel 2

Discovery skips symlinks, hidden and generated directories, and Git-ignored paths. A nested Git repository can still be discovered as its own project.

See the complete monorepo manifest pattern.

Regions and custom domains

Declare a primary region, all deployment regions, and an optional custom hostname:

region: de
regions:
  - de
  - nj
replicas: 1
domain: api.example.com

replicas applies per region, so this example requests one replica in de and one in nj. The first deployment of an unclaimed custom hostname prints the required DNS records. Add those records, wait for DNS propagation, and run adios up again to verify and route the hostname.

Removing domain from the manifest does not delete the existing domain claim. Use adios domains remove when you intend to remove it. Hostnames beneath adios.dev and adios.run are reserved for the platform.

See the multi-region example.

Back to the documentation index