From d082a89a9f7da6c34a580293bcfea32c5b3ba681 Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 2 May 2026 09:41:05 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Staging=20=E2=80=94=20Container=20erst?= =?UTF-8?q?=20stoppen=20bevor=20DB=20kopiert=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 76c31a8..37d99ea 100644 --- a/Makefile +++ b/Makefile @@ -118,12 +118,15 @@ staging: check-ssh @git push $(GIT_REMOTE) develop @echo "→ Sync zu DS (Staging)..." @COPYFILE_DISABLE=1 tar czf - $(TAR_EXCLUDE) . | ssh $(DS_HOST) "tar xzf - -C $(DS_PATH_STAGING)/" - @echo "→ Produktions-DB nach Staging kopieren..." - @ssh $(DS_HOST) "mkdir -p $(DS_PATH_STAGING)/data && cp $(DS_PATH)/data/banyaro.db $(DS_PATH_STAGING)/data/banyaro.db" + @echo "→ Staging stoppen + DB aus Produktion kopieren..." + @ssh $(DS_HOST) " \ + cd $(DS_PATH_STAGING) && \ + $(DOCKER) compose -f docker-compose.staging.yml down; \ + mkdir -p $(DS_PATH_STAGING)/data && \ + cp $(DS_PATH)/data/banyaro.db $(DS_PATH_STAGING)/data/banyaro.db" @echo "→ Staging rebuild + restart..." @ssh $(DS_HOST) " \ cd $(DS_PATH_STAGING) && \ - $(DOCKER) compose -f docker-compose.staging.yml down && \ $(DOCKER) compose -f docker-compose.staging.yml build && \ $(DOCKER) compose -f docker-compose.staging.yml up -d" @echo ""