build and start.md

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.

Infrastructure requirements

Prerequisites

Exact tested configuration

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.
   ample deploy . --name <app-name> --public --start "python3 run.py"
  1. Verify. Fetch the live URL on the example; on failure read the build and runtime logs.
   ample logs <deployment_id> --kind build

Tested examples

Success checks

Limitations

Cost estimate

Estimated 5.00 USD per month (size prices from pricing.toml at build revision a1b8c38919e59cd035ebabaced73cf84ece24371).

Always-on monthly price of the tested sizes; apps auto-pause when idle. Buckets are allocation-priced per quota and not included.

Verification evidence

Last verified: 2026-09-21T01:21:36Z

Execution binding

MCP tool ample_deploy, binding state current, required scopes: servers:write.