Redeploy a server (same settings)
lavela.compute_rebuildStart a finished repo build again with EXACTLY its original settings (branch, folder, port, env, mounts; the server keeps its size and always-on setting — with none running, those it last ran; always on costs more; sleeping database/cache: refused) — how a server lavela built from a repo is REDEPLOYED after a push or a fix: lavela.compute_build_status {projectId, service} returns its last build; pass that id. Only rebuildable builds. It replaces the running server. internalPort, subdir, gitRef change just that setting; later rebuilds of the new build keep it. Paid from the lavela wallet (balance: lavela.account_status; prices: https://console.lavela.dev/pricing) — confirm with the user before calling. Details: https://console.lavela.dev/docs/mcp#redeploy-and-rollback
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gitRef | No | New branch, tag or commit; "" = default branch. | |
| subdir | No | New folder to build; "" = repo root. | |
| buildId | Yes | The build's id, from lavela.compute_build_status. | |
| internalPort | No | New port the app listens on. |