Deploy Module
deploy_moduleDeploy a new module from a GitHub repository onto the project's resource pool: a frontblok module is a Vite frontend, a logicblok module a backend built from its Dockerfile that serves port 8000 with GET /health. Its job clones the repository (the default branch head, or git_ref), builds it and serves it at the module_url the answer names; the project's CORS origins take the module in. A private repository needs the RationalBloks GitHub App installed on it. The operation is ASYNCHRONOUS: poll the returned job_id with get_job_status. While RationalBloks is being updated, the call is refused with 'RationalBloks is being updated': call it again in a few minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| git_ref | No | Branch, tag or commit SHA for this first build (default: the default branch head) | |
| env_vars | No | Environment variables {NAME: value}, each value text | |
| memory_mb | No | Memory allocation (default: 128) | |
| project_id | Yes | Project ID (UUID) the module belongs to | |
| module_name | Yes | Display name | |
| module_type | Yes | frontblok (a Vite frontend) or logicblok (a backend built from its Dockerfile) | |
| cpu_millicores | No | CPU allocation (default: 100) | |
| dockerfile_path | No | Dockerfile path inside the repository (default: Dockerfile) | |
| github_repo_url | Yes | https://github.com/<owner>/<repo> |