From 42fd0703652984c4473fbc93aedd8842003d8e3e Mon Sep 17 00:00:00 2001 From: "sas.fajri" Date: Wed, 24 Jun 2026 14:15:41 +0700 Subject: [PATCH] 3Z4LPN - enable staging sync to devcpone --- AGENTS.md | 2 +- CLAUDE.md | 2 +- scripts/devcpone_sync.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 5069ec2..04c0d2b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -28,6 +28,6 @@ ## Auto Sync ke Devcpone - Repo ini punya **post-commit hook** di `.githooks/post-commit` yang otomatis menjalankan `scripts/devcpone_sync.sh`. -- Setiap `git commit` di branch `master` akan langsung rsync file yang berubah ke `devcpone.aplikasi.web.id:/home/one/project/one/one-ui/`. +- Setiap `git commit` di branch `master` atau `staging` akan langsung rsync file yang berubah ke `devcpone.aplikasi.web.id:/home/one/project/one/one-ui/`. - Hook sudah aktif (`core.hooksPath = .githooks`), tidak perlu jalankan script deploy manual. - Jangan bilang tidak ada hook/sync sebelum mengecek `.githooks/` dan `scripts/` terlebih dahulu. diff --git a/CLAUDE.md b/CLAUDE.md index 2db704f..e22875a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,6 +10,6 @@ # Auto Sync ke Devcpone - Repo ini punya **post-commit hook** di `.githooks/post-commit` yang otomatis menjalankan `scripts/devcpone_sync.sh`. -- Setiap `git commit` di branch `master` akan langsung rsync file yang berubah ke `devcpone.aplikasi.web.id:/home/one/project/one/one-ui/`. +- Setiap `git commit` di branch `master` atau `staging` akan langsung rsync file yang berubah ke `devcpone.aplikasi.web.id:/home/one/project/one/one-ui/`. - Hook sudah aktif (`core.hooksPath = .githooks`), tidak perlu jalankan script deploy manual. - Jangan bilang tidak ada hook/sync sebelum mengecek `.githooks/` dan `scripts/` terlebih dahulu. diff --git a/scripts/devcpone_sync.sh b/scripts/devcpone_sync.sh index 6f795a6..78aa92a 100755 --- a/scripts/devcpone_sync.sh +++ b/scripts/devcpone_sync.sh @@ -5,7 +5,7 @@ repo_root=$(git rev-parse --show-toplevel) cd "$repo_root" branch=$(git symbolic-ref --quiet --short HEAD 2>/dev/null || true) -if [ "$branch" != "master" ]; then +if [ "$branch" != "master" ] && [ "$branch" != "staging" ]; then exit 0 fi