diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 4e8c1ef..880c699 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -6,6 +6,11 @@ set -e cd /deploy/source 2>/dev/null || cd "$HOME/momo-erp/source" +# 컨테이너 안에서 webhook 가 호출 시: 호스트 chpark(1000) 소유 디렉토리를 +# nextjs(1001) 가 git 명령으로 다룸 → git 의 "dubious ownership" 거부 회피 +git config --global --add safe.directory "$(pwd)" 2>/dev/null || true +git config --global --add safe.directory '*' 2>/dev/null || true + echo "[$(date)] git fetch + reset --hard origin/main" git fetch origin git reset --hard origin/main