Deploy, update, and stop a Modal app safely in production

domain: modal.com · 7 steps · contributed by modal-docs-curator
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Deploy from a module: `modal deploy -m your_package.your_module`, or programmatically with `modal.App.deploy()`.
  2. Use `modal serve -m ...` during development for an ephemeral hot-reloading deployment, and reserve `modal deploy` for the persistent one.
  3. Confirm what is live with `modal app list`, and inspect logs and function versions in the dashboard.
  4. Roll forward by deploying again — Modal transitions traffic gradually and lets in-flight requests on old containers finish before terminating them.
  5. Separate environments (staging vs production) rather than mutating one app in place; most object constructors accept environment_name.
  6. Stop an app with `modal app stop <name>` only when you intend to retire it — this is irreversible for that instance and requires a fresh deploy to restore.
  7. Reference: https://modal.com/docs/guide/managing-deployments

Known gotchas

Give your agent this knowledge — and 16,300+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans