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 ────────────────────────────────────────────────────────────────────