For the complete documentation index, see llms.txt.

Documentation

Repository docs

This route renders the repository README and markdown under docs/ .

Source: docs/DEPLOYMENT_LOGS.md

Rendered document

docs/DEPLOYMENT_LOGS.md

Parsed server-side (markdown to HTML in the app). Same bytes you get from the checkout.

Deployment Logs

Smart Deploy gives you three log surfaces: live deploy logs, history logs, and ECS runtime logs.

Live deploy logs

During an active deploy, logs stream over WebSocket to the Logs tab in the deploy workspace.

PropertyDetail
TransportWebSocket worker (deploy:log, deploy:steps)
FormatTimestamped lines grouped by deploy step
ReconnectionSubscribing to workspace replays in-progress state (deploy:snapshot)

If logs stop updating:

  • Check system health indicator in the header (worker offline = degraded)
  • Refresh the page to reconnect WebSocket

Deploy steps in logs

Typical step order for ECS:

auth → build → publish → setup → deploy → rollout → verify → done

Each step shows status (running, success, error) and accumulated log lines. On failure, the first error line in the failed step is usually the root cause.

History logs

Every deploy attempt is stored in Deployment History.

FieldContent
stepsPer-step status and inline log lines
failureCodeStructured code when classified
failureClassificationSummary, likely cause, evidence
Full logsFetched from object storage via history UI (when logRef exists)

Use history when the live stream is gone or you need an older attempt.

ECS CloudWatch logs (runtime)

For running ECS deployments, the Logs tab can tail CloudWatch log group for the service (last ~50 lines).

Use for:

  • App crashes after successful deploy
  • Verify failures where the image built but the process exits
  • Runtime exceptions not visible in deploy-step logs

Runtime logs appear after the task is running — not during CodeBuild.

Build log excerpts (scan)

Smart Analysis stores build_verification.log_excerpt and repair_history[].build_log_excerpt in scan results. Check these when deploy fails at Build but CodeBuild logs are sparse in history.

Reading logs effectively

  1. Find the failed step id
  2. Search for error, Error, FAILED, exit code, first npm/pip/Docker failure
  3. Ignore trailing cascade errors — fix the earliest failure
  4. For verify failures, scroll to ECS diagnostics appended after probe timeout

Analyze failure

Pulls the full log payload for one history entry and sends it to the LLM with failure classification. Use when inline history logs are truncated.

Agent log excerpts

The Deployment Agent returns summarized log lines from history (last few lines per failed step). For complete logs, open History directly.

Related