@astrofoundry/pi-astro 0.40.66 → 0.40.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -808,7 +808,12 @@ async function waitForSync(config: ArcaneConfig, stack: string, commit: string):
|
|
|
808
808
|
}
|
|
809
809
|
|
|
810
810
|
async function redeploy(config: ArcaneConfig, stack: string): Promise<string | null> {
|
|
811
|
-
|
|
811
|
+
// arcane-cli matches a project name as a prefix: grimoire-graphile also matched grimoire-graphile-bootstrap (2026-11-09).
|
|
812
|
+
const result = await withCli(config, async (cli) => {
|
|
813
|
+
const project = listRows(await cliJson(cli, ["projects", "list", "--all"])).find((p) => p.name === stack);
|
|
814
|
+
if (typeof project?.id !== "string") throw new ServiceError(`no project named ${stack}`);
|
|
815
|
+
return cli(["projects", "redeploy", project.id, "--yes"], REDEPLOY_TIMEOUT_MS);
|
|
816
|
+
});
|
|
812
817
|
return result.code === 0 ? null : (result.stderr.trim().split("\n").pop() ?? "").slice(0, 300) || `projects redeploy exited ${result.code}`;
|
|
813
818
|
}
|
|
814
819
|
|