From 229c0f8b487dbb655a63a83a07694ad9eee96e36 Mon Sep 17 00:00:00 2001 From: codex_a Date: Sun, 1 Mar 2026 09:38:54 +0000 Subject: [PATCH] fix: cd to site dir before docker compose commands docker compose stats the cwd when parsing compose files; if cwd is not accessible to the deploy user the command fails. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- deploy/deploy.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index 0838c3a..256053d 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -6,6 +6,8 @@ set -euo pipefail SITE_DIR=/srv/sum/nohype APP_DIR=${SITE_DIR}/app +cd "${SITE_DIR}" + echo "==> Pulling latest code" git -C "${APP_DIR}" pull origin main -- 2.49.1