From 359260fcefcdb9e74f6fc289232a8f1179dddb16 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 14 Jul 2026 13:43:34 +0000 Subject: [PATCH] Fix deploy/rebuild: use absolute paths to avoid cd + Compose v5 CWD issues --- updater/src/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/updater/src/index.js b/updater/src/index.js index a52db79..0efdc8e 100644 --- a/updater/src/index.js +++ b/updater/src/index.js @@ -223,11 +223,13 @@ async function runRemote(target, repoName, cmd, label) { } async function deploy(target, repoName) { - return runRemote(target, repoName, `cd ${target.path} && git pull && docker compose -f docker-compose.yml up -d --build`, 'deploy') + const p = target.path + return runRemote(target, repoName, `git -C ${p} pull && docker compose -f ${p}/docker-compose.yml --project-directory ${p} up -d --build`, 'deploy') } async function rebuild(target, repoName) { - return runRemote(target, repoName, `cd ${target.path} && docker compose -f docker-compose.yml up -d --build`, 'rebuild') + const p = target.path + return runRemote(target, repoName, `docker compose -f ${p}/docker-compose.yml --project-directory ${p} up -d --build`, 'rebuild') } // ── Routes ────────────────────────────────────────────────────────────────────