fix: ssl 폴더 보존하면서 배포

- ssl 폴더를 제외하고 나머지 파일만 삭제
- 권한 문제 해결 위해 find 명령어 사용
- README.md 배포 플로우 설명 업데이트

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
happybell80 2025-07-09 16:28:23 +09:00
parent 272c483e09
commit 2d681632c1
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ jobs:
PORT: ${{ secrets.NAS_PORT }} PORT: ${{ secrets.NAS_PORT }}
USER: ${{ secrets.NAS_USER }} USER: ${{ secrets.NAS_USER }}
run: | run: |
ssh -o StrictHostKeyChecking=no -p $PORT $USER@$HOST "rm -rf ~/robeing-nginx && mkdir -p ~/robeing-nginx" ssh -o StrictHostKeyChecking=no -p $PORT $USER@$HOST "mkdir -p ~/robeing-nginx && find ~/robeing-nginx -maxdepth 1 -not -name ssl -not -name '.' -exec rm -rf {} + || true"
tar --exclude='.git' -czf - . | ssh -o StrictHostKeyChecking=no -p $PORT $USER@$HOST "cd ~/robeing-nginx && tar -xzf -" tar --exclude='.git' -czf - . | ssh -o StrictHostKeyChecking=no -p $PORT $USER@$HOST "cd ~/robeing-nginx && tar -xzf -"
- name: Start services via SSH - name: Start services via SSH

View File

@ -16,7 +16,7 @@ nginx-deploy/
1. **main 브랜치에 push** 1. **main 브랜치에 push**
2. **GitHub Actions** 자동 실행 2. **GitHub Actions** 자동 실행
3. **SCP로 파일 전송** (Ubuntu 서버 ~/robeing-nginx) 3. **파일 전송** (Ubuntu 서버 ~/robeing-nginx, ssl 폴더 보존)
4. **Docker Compose** 자동 재시작 4. **Docker Compose** 자동 재시작
## 서버 설정 ## 서버 설정