From 1df3ca17096a0a1cb3b0cd9215210e3e7b891327 Mon Sep 17 00:00:00 2001 From: "Sven (AAMOS AI)" Date: Wed, 12 Aug 2026 23:17:41 +0700 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20exkludera=20prod=20.env/secrets/?= =?UTF-8?q?certs=20fr=C3=A5n=20rsync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infrastructure/deployment/sync-to-prod.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 infrastructure/deployment/sync-to-prod.sh diff --git a/infrastructure/deployment/sync-to-prod.sh b/infrastructure/deployment/sync-to-prod.sh new file mode 100755 index 0000000..d14299a --- /dev/null +++ b/infrastructure/deployment/sync-to-prod.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# Synka repo till prod-server utan att skriva över prod-specifik config. +# Körs från lokal/WSL-maskin mot cibello-prod. +set -euo pipefail + +LOCAL_DIR="${1:-/home/dator_ubuntujpb/.openclaw/workspace/cibello-work/cibello/}" +REMOTE_USER="${2:-ubuntu}" +REMOTE_HOST="${3:-cibello-prod}" +REMOTE_DIR="${4:-/opt/cibello-platform/}" + +echo "==> Synkar $LOCAL_DIR -> $REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR" + +rsync -avz --delete \ + --exclude='.git/' \ + --exclude='node_modules/' \ + --exclude='dist/' \ + --exclude='.env' \ + --exclude='secrets/' \ + --exclude='certs/' \ + "$LOCAL_DIR" "$REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR" + +echo "==> Synk klar"