Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 2.16 KB

README.md

File metadata and controls

55 lines (40 loc) · 2.16 KB

Adios CLI examples

These examples are copyable deployment patterns, not complete applications. Choose the closest manifest, copy it into a matching project, and update the name, commands, ports, regions, and resource settings before deployment.

Example Demonstrates
basic-node A single Node.js API
managed-postgres Generated credentials and a managed Postgres dependency
multi-region Per-region replicas and a custom domain
monorepo Recursive project discovery, aliases, and dependency ordering
shared-source A sibling source directory included in a build graph
ignore-rules Deployment-only exclusions with .adiosignore

Use an example

Copy the chosen manifest into your application directory:

cp /path/to/cli/examples/basic-node/adios.yaml ./adios.yaml

Review it, then log in and deploy:

adios login
adios up

On its first deployment, the CLI may add app_id, team_id, and managed resource IDs to the copied manifest. Those values bind later commands to the same platform objects; do not copy the updated manifest into an unrelated project without removing and regenerating those identities.

Adapt commands to the project

The examples assume conventional production scripts:

  • Node.js examples expect a server.js or an appropriate npm run start;
  • the Go API example expects a buildable main package; and
  • the Next.js example expects a project with build and start scripts.

If your framework uses another entrypoint, change build_cmd and start_cmd. The process must bind to 0.0.0.0 and listen on the declared port.

Keep secrets out of Git

The managed Postgres pattern declares generated credentials and uses secret:// references. Never replace those references with real passwords in a committed manifest. Store an existing value with adios secrets set and reference its key instead.

Read Deployments and manifests for field behavior and Resources and routing for resource commands.