From 7029bd01aaa699bd1ad0870682569683167b0ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jules=20N=C3=A9ny?= Date: Fri, 6 Nov 2026 19:24:34 +0100 Subject: [PATCH] =?UTF-8?q?Checkpoint=20prototype=20XL=20(06/11)=20:=20dep?= =?UTF-8?q?loy.sh=20laisse=20les=20tuiles=20hors=20de=20l'archive=20et=20l?= =?UTF-8?q?ie=20chaque=20release=20=C3=A0=20/opt/quartier/tuiles=20(un=20s?= =?UTF-8?q?eul=20exemplaire=20sur=20le=20serveur,=20hors=20rotation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01PWGVn1MadEPbqdVsFPpCNB --- deploy.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 664ff4f..c43b29a 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,7 +2,8 @@ # deploy.sh — Quelque part en 2035 (quartier.trans-former.fr), site statique. # # Pipeline : build LOCAL (aucun binaire natif : le build x86_64 sert un VPS arm64 sans problème) -# → tar de dist/ → scp → /opt/quartier/releases// → bascule du lien /opt/quartier/current +# → tar de dist/ (sans dist/tuiles) → scp → /opt/quartier/releases// (+ lien tuiles → /opt/quartier/tuiles) +# → bascule du lien /opt/quartier/current # → smoke LOCAL sur le VPS (Host: quartier.trans-former.fr, marqueur exigé, bloquant) # → smoke public (informatif tant que DNS/certificat ne sont pas là) → garde 3 releases. # @@ -33,7 +34,8 @@ POIDS="$(du -sk dist | cut -f1)" echo " dist : ${POIDS} Ko" echo "==> Transfert vers ${VPS_HOST}:${DEST}/releases/${HASH}" -tar -C dist -czf "/tmp/quartier-${HASH}.tgz" . +# Les tuiles de la carte XL (dist/tuiles, 50 Mio, hors git) ne voyagent pas : elles vivent une fois dans ${DEST}/tuiles. +tar -C dist --exclude=./tuiles -czf "/tmp/quartier-${HASH}.tgz" . scp -q "/tmp/quartier-${HASH}.tgz" "${VPS_HOST}:/tmp/" rm -f "/tmp/quartier-${HASH}.tgz" @@ -44,6 +46,8 @@ REL="${DEST}/releases/${HASH}" rm -rf "${REL}"; mkdir -p "${REL}" tar -C "${REL}" -xzf "/tmp/quartier-${HASH}.tgz"; rm -f "/tmp/quartier-${HASH}.tgz" chmod -R a+rX "${REL}" +# Carte XL : un seul exemplaire des tuiles, hors des releases (la rotation ne le touche pas) ; chaque release le voit par un lien. +if [ -d "${DEST}/tuiles" ]; then ln -sfn "${DEST}/tuiles" "${REL}/tuiles"; echo " tuiles liées (${DEST}/tuiles)"; fi PREC="$(readlink -f "${DEST}/current" 2>/dev/null || true)" ln -sfn "${REL}" "${DEST}/current" echo "==> Smoke local (fichier en place, puis Caddy en TLS local avec --resolve)"