page:guides:axum:build and start

Configure build and start for Axum

Summary

Build and start for an Axum app on Ample. Verified on Axum: the app built and started with the documented commands and answered on its public HTTPS URL. Build and start: cargo build --release in the rust builder image (stable toolchain, Cargo.lock committed, pure-Rust dependencies), then the release binary on the ubuntu-24.04 template reading PORT and DATABASE_URL.

Prerequisites

Resource Requirements

Workflow Steps

  1. Build and start
    cargo build --release in the rust builder image (stable toolchain, Cargo.lock committed, pure-Rust dependencies), then the release binary on the ubuntu-24.04 template reading PORT and DATABASE_URL; the server must bind 0.0.0.0 on PORT.
  2. Deploy
    Run the synchronous deploy once and read the result.
    Command: ample deploy . --name --public
  3. Verify
    Fetch the live URL on the example; on failure read the build and runtime logs.
    Command: ample logs --kind build

Examples

Success Checks

Limitations

Cost Estimate

Evidence Summary

Next Actions

  1. Browse the catalog index
    Method: GET
    Relative Path: /v1/catalog
  2. Search published recipes by intent, stack and constraints
    Method: POST
    Relative Path: /v1/catalog/search
    Body: {"limit":5,"query":"Configure build and start for Axum"}
  3. Prepare a side-effect-free deployment plan for an authorized project
    Method: POST
    Relative Path: /v1/catalog/plan
  4. Read the existing agent authentication setup
    Method: GET
    Relative Path: /mcp/setup
  5. Browse Axum
    Method: GET
    Relative Path: /v1/catalog/nodes/stack%3Aframework-axum
  6. Browse Configure deployment
    Method: GET
    Relative Path: /v1/catalog/nodes/intent%3Aconfigure-deployment
  7. Browse Public web service
    Method: GET
    Relative Path: /v1/catalog/nodes/pattern%3Apublic-web-service