From c2198960c45a8f73b3a0bba5c732f28c3bee3b5d Mon Sep 17 00:00:00 2001 From: renator2 Date: Mon, 20 Jul 2026 11:22:55 -0300 Subject: [PATCH] =?UTF-8?q?#SVTH-575=20-=20Estruturando=20update=20para=20?= =?UTF-8?q?n=C3=A3o=20remover=20dados=20de=20infra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 77f9a75..cd99bc9 100644 --- a/Makefile +++ b/Makefile @@ -82,7 +82,21 @@ restart: # =============================== # 🔄 Atualizar projeto # =============================== -update: nuke-project install +update: + @echo "🛑 Parando e removendo containers do profile 'app' ($(PROJECT_NAME))..." + docker compose \ + --project-name $(PROJECT_NAME) \ + --env-file $(ENV_FILE) \ + --profile app \ + -f $(COMPOSE_FILE) \ + down --remove-orphans + + @echo "🖼️ Removendo imagens antigas do projeto (seventhltda)..." + - docker images --format '{{.Repository}}:{{.Tag}}' | grep '^seventhltda/' | xargs -r docker rmi -f 2>/dev/null || true + + @echo "✅ Containers do profile 'app' removidos. Infraestrutura (dados) preservada." + + $(MAKE) app # =============================== # 💣 Limpeza TOTAL