From 4d9a04424312321376f4074aec8c16de82c5ecc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Wed, 25 Feb 2026 11:23:35 +0900 Subject: [PATCH] =?UTF-8?q?docs:MNG=20=EB=B0=B0=ED=8F=AC=20=EB=AC=B8?= =?UTF-8?q?=EC=84=9C=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=E2=80=94=20?= =?UTF-8?q?Jenkinsfile=20=EA=B6=8C=ED=95=9C=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- deploys/ops-manual/05-deployment.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/deploys/ops-manual/05-deployment.md b/deploys/ops-manual/05-deployment.md index 486222c..8a416b2 100644 --- a/deploys/ops-manual/05-deployment.md +++ b/deploys/ops-manual/05-deployment.md @@ -573,15 +573,9 @@ ls -1dt */ | tail -n +4 | xargs rm -rf 2>/dev/null || true API와 동일한 releases/shared 구조. 차이점: npm build 추가, Queue Worker 재시작 불필요. -> **주의: storage/logs 권한 문제** -> MNG Jenkinsfile은 `storage/logs`를 shared로 심링크하지 않고 릴리즈 디렉토리에 `mkdir`로 생성한다. -> 이 디렉토리는 `hskwon:hskwon` 소유로 생성되므로, PHP-FPM(`www-data`)이 로그를 쓸 수 없다. -> 배포 후 500 에러가 발생하는데 로그가 비어있으면 다음을 실행: -> ```bash -> sudo chown www-data:webservice /home/webservice/mng/current/storage/logs/ -> sudo chown www-data:webservice /home/webservice/mng/current/storage/logs/laravel.log 2>/dev/null -> ``` -> 근본 해결: Jenkinsfile에 `chown` 명령 추가 또는 storage/logs를 shared 심링크로 변경. +> **참고: storage/logs 권한** +> MNG는 `storage/logs`를 shared로 심링크하지 않고 릴리즈 디렉토리에 `mkdir`로 생성한다. +> Jenkinsfile에서 `sudo chown -R www-data:webservice storage/logs`로 권한을 설정한다. (2026-02-25 적용) ### Jenkinsfile (mng/Jenkinsfile)