page:guides:starlette:build and start

Configure build and start for Starlette

Summary

Build and start for a Starlette app on Ample. Verified on Starlette: the app built and started with the documented commands and answered on its public HTTPS URL. Build and start: pip install into .ample/python from requirements.txt, then uvicorn from run.py reading PORT on the python-3.12 template.

Prerequisites

Tested Configuration

Workflow Steps

  1. Build and start
    pip install into .ample/python from requirements.txt, then uvicorn from run.py reading PORT on the python-3.12 template; 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 --start "python3 run.py"
  3. Verify
    Fetch the live URL on the example; on failure read the build and runtime logs.
    Command: ample logs --kind build

Success Checks

Limitations

Evidence Summary

Cost Estimate

Next Actions

  1. Browse the catalog index
  2. Search published recipes by intent, stack and constraints
  3. Prepare a side-effect-free deployment plan for an authorized project
  4. Read the existing agent authentication setup
  5. Browse Starlette
  6. Browse Configure deployment
  7. Browse Public web service

Examples

Resource Requirements

Infrastructure Requirements