fix: [deploy] 배포 시 .env 권한 640 보장 추가

- Production 배포 스크립트에 chmod 640 추가
- vi 편집으로 인한 .env 권한 변경(600) 방지
- 2026-03-03 장애 재발 방지 (PHP-FPM이 .env 읽기 실패 → 500)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 09:51:08 +09:00
parent 099d08e49e
commit 9281bb64b9

1
Jenkinsfile vendored
View File

@@ -43,6 +43,7 @@ pipeline {
mkdir -p bootstrap/cache storage/framework/{views,cache/data,sessions} storage/logs &&
sudo chown -R www-data:webservice 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 &&
composer install --no-dev --optimize-autoloader --no-interaction &&
npm install --prefer-offline &&