From d8cccc1a650b17e58ebe22dd4b129f3ab9caa7d9 Mon Sep 17 00:00:00 2001 From: Do Siki Date: Fri, 11 Sep 2026 22:13:47 +0200 Subject: [PATCH] fix(deploy): drop stale content-editor systemd restart from staging script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scripts/deploy_to_stage_on_local.sh restarted a "mozdit-content-editor.service" systemd unit after every staging deploy — the old custom CMS's own service (content-editor.js, retired in MITHOME-93). Left in place, the next staging deploy would pull the commit that deletes content-editor.js and then try to restart a service pointing at a now-missing script. Removed the restart from the deploy script; the server-side systemd unit itself (if still installed) needs a manual stop/disable — out of reach from here (no SSH access in this session), flagging it to the user instead. Co-Authored-By: Claude Sonnet 5 --- scripts/deploy_to_stage_on_local.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/deploy_to_stage_on_local.sh b/scripts/deploy_to_stage_on_local.sh index c0469d1..6a94f6e 100755 --- a/scripts/deploy_to_stage_on_local.sh +++ b/scripts/deploy_to_stage_on_local.sh @@ -45,8 +45,14 @@ printf '2/4 Commit feltolása a Gitea-ra…\n' git push origin "${DEPLOY_BRANCH}" printf '3/4 Staging deploy (%s:%s)…\n' "${STAGE_HOST}" "${STAGE_PATH}" +# WHY nincs itt már "sudo systemctl restart mozdit-content-editor.service": az a +# régi egyedi CMS (content-editor.js) külön systemd szolgáltatása volt — a +# fájlt MITHOME-93 leépítette, a Docker-compose alapú app (deploy.sh) a +# régóta egyedüli kiszolgáló. A szerveren futó mozdit-content-editor.service +# unit-ot (ha még létezik) manuálisan kell leállítani/letiltani — ezt a +# scriptet nem futtatjuk SSH-n keresztül automatikusan. ssh -o BatchMode=yes -o ConnectTimeout=15 "${STAGE_HOST}" \ - "cd '${STAGE_PATH}' && git pull --ff-only origin '${DEPLOY_BRANCH}' && ./deploy.sh staging && sudo systemctl restart mozdit-content-editor.service" + "cd '${STAGE_PATH}' && git pull --ff-only origin '${DEPLOY_BRANCH}' && ./deploy.sh staging" printf '4/4 Staging smoke teszt (%s)…\n' "${STAGE_URL}" (