docs:배포 스크립트 수정 이력 추가 (심볼릭 링크 자동 복원)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
pro
2026-01-30 15:27:24 +09:00
parent 5abec84012
commit e5ffe9bea6

View File

@@ -364,6 +364,26 @@ ### 주의사항
---
### 12. 배포 스크립트 수정 (심볼릭 링크 자동 복원)
**문제**: git push 후 자동 배포 시 `git checkout .` 명령으로 인해 심볼릭 링크가 원래 값으로 덮어씌워짐
**수정 파일**: `/home/webservice/script/pull_mng.sh`
**추가된 코드**:
```bash
# 심볼릭 링크 수정 (서버 경로에 맞게)
echo "심볼릭 링크 수정 중..." >> $LOGFILE
cd /home/webservice/mng/public
rm -f tenant-storage
ln -s /home/webservice/shared-storage/tenants tenant-storage
echo "심볼릭 링크 수정 완료" >> $LOGFILE
```
**효과**: 이제 git push 후에도 `tenant-storage` 심볼릭 링크가 자동으로 `/home/webservice/shared-storage/tenants`를 가리키게 됨
---
## 참고: Docker vs 서버 경로 차이
| 항목 | Docker (로컬) | 서버 |