fix: [deploy] storage/logs shared 심링크로 변경 (500 에러 방지)

- mkdir storage/logs → rm -rf && ln -sfn shared/storage/logs
- migrate 실행 시 로그 파일 권한 문제로 500 에러 재발 방지
This commit is contained in:
2026-03-19 20:19:16 +09:00
parent 98ce23d799
commit e314a46f42

4
Jenkinsfile vendored
View File

@@ -41,8 +41,8 @@ pipeline {
ssh ${DEPLOY_USER}@211.117.60.189 '
cd /home/webservice/mng/releases/${RELEASE_ID} &&
mkdir -p bootstrap/cache storage/framework/{views,cache/data,sessions} storage/logs &&
sudo chown -R www-data:webservice storage/logs &&
mkdir -p bootstrap/cache storage/framework/{views,cache/data,sessions} &&
rm -rf storage/logs && ln -sfn /home/webservice/mng/shared/storage/logs storage/logs &&
ln -sfn /home/webservice/mng/shared/.env .env &&
sudo chmod 640 /home/webservice/mng/shared/.env &&
ln -sfn /home/webservice/mng/shared/storage/app storage/app &&