redeploy_demo
Redeploy an existing Application demo (PR or branch) with the identity recorded on its tracking row - same branch or pull request, same image tag - so the Application's just-saved demo configuration (env defaults, throwaway database) applies to the running demo. This is how a crashed demo is relaunched after update_application_demo_config: the rollout replaces the pods with the new environment. Optional env / database arguments add per-launch overrides on top of the saved defaults. Safe in ask mode: the demo stays isolated in its TTL-reaped namespace. Identify the demo by workspace_id or namespace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Extra per-launch environment overrides as a name-to-value object, merged over the Application's saved demo defaults; these win by name. Values may carry ${SECRET_SLOT:<uuid>} sentinels and, when database is enabled, ${{ ankra.demo_database.* }} placeholders. | |
| database | No | Override the Application's saved throwaway-database default for this launch. | |
| namespace | No | The demo namespace (ankra-demo-pr-* / ankra-demo-br-*). Optional if workspace_id is given. | |
| workspace_id | No | The demo's workspace id. Optional if namespace is given. | |
| application_id | Yes | The Application whose demo to redeploy. | |
| container_port | No | Override the container port for this redeploy (1-65535). Use the port the demo's own logs say the container listens on (get_demo_diagnostics reports both the deployed and the detected port); omitted, the redeploy reuses the port recorded on the demo row, including any automatic runtime correction. |