page:guides:echo:schema changes

Apply Database Schema Changes for Echo

Schema changes for a Echo app on Ample. Verified on Echo: a --release-command migration ran before activation and its marker was readable by the live app (migrated=release-ok). Build and start: CGO_ENABLED=0 go build -o app ./... then ./app on the ubuntu-24.04 template (go.sum committed for a reproducible build).

Representative Queries

Resource Requirements

Infrastructure Requirements

Workload

Apply database schema changes.

Prerequisites

Workflow Steps

  1. Build and start: CGO_ENABLED=0 go build -o app ./... then ./app on the ubuntu-24.04 template (go.sum committed for a reproducible build); the server must bind 0.0.0.0 on PORT.
  2. Run migrations as the release command: Ample runs the command before activation and fails the release if it exits non-zero; keep migrations idempotent. Command: ample deploy . --name --public --release-command "./app migrate"
  3. Verify: Fetch the live URL and /p/migrated on the example; on failure read the build and runtime logs. Command: ample logs --kind build

Examples

Success Checks

  1. App responds on its public URL. Kind: http_get; Path: /; Expect: ample canary echo patterns.
  2. Migrated check from the example. Kind: http_get; Path: /p/migrated; Expect: see the pattern fixture checks.

Limitations

Cost Estimate

Evidence Summary

  1. Canary Run: Echo pattern fixture deployed on Ample (CGO_ENABLED=0 go build -o app ./... then ./app on the ubuntu-24.04 template (go.sum committed for a reproducible build)); for this guide: a --release-command migration ran before activation and its marker was readable by the live app (migrated=release-ok).
    • Observed At: 2026-09-21T02:34:39Z
    • Implementation Revision: 1d28ae0-dirty (CLI 0.1.21)
    • Expires At: 2027-03-20T02:34:39Z
    • Scope: checks ['/p/migrated'], template: 'ubuntu-24.04'

Formats

Next Actions