fix: ssl 폴더 삭제 후 단순화

- ssl 폴더가 없으므로 ~/robeing-nginx/* 로 내부 파일만 삭제
- README.md에서 ssl 폴더 보존 설명 제거
- 더 간단하고 안전한 배포 방식

🤖 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:29:33 +09:00
parent 2d681632c1
commit 9386939191
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 "mkdir -p ~/robeing-nginx && find ~/robeing-nginx -maxdepth 1 -not -name ssl -not -name '.' -exec rm -rf {} + || true" ssh -o StrictHostKeyChecking=no -p $PORT $USER@$HOST "rm -rf ~/robeing-nginx/* || true; mkdir -p ~/robeing-nginx"
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. **파일 전송** (Ubuntu 서버 ~/robeing-nginx, ssl 폴더 보존) 3. **파일 전송** (Ubuntu 서버 ~/robeing-nginx)
4. **Docker Compose** 자동 재시작 4. **Docker Compose** 자동 재시작
## 서버 설정 ## 서버 설정