deployment diagnostics.md

Diagnose deployment failures for Express

Summary

Diagnose a failed Express deployment on Ample. Deploy is synchronous: a build failure returns build_failed with the deployment id, and ample logs exposes the build log and then the runtime log so the cause is read, not guessed.

Infrastructure requirements

Prerequisites

Exact tested configuration

Steps

  1. Read the failure code. Exit 1 with build_failed means the isolated build failed; exit 2 means a required preflight action is blocking.
  2. Read the build log. The last lines name the failing command.
   ample logs <deployment_id> --kind build
  1. Read the runtime log. For a live-but-misbehaving app the runtime log shows the process output.
   ample logs <deployment_id> --kind runtime
  1. Fix and redeploy once. Change the source or the command override, then run ample deploy again. Do not loop deploys to poll status.

Tested examples

Success checks

Limitations

Cost estimate

Unknown. No price is claimed for this recipe.

Verification evidence

Last verified: 2026-09-19T23:55:33Z

Execution binding

No execution binding. This recipe is documentation only; nothing is executed automatically.