From d68fd56232b9a604dd8889a2c2861ada0ea73479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Tue, 3 Mar 2026 09:51:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[deploy]=20=EB=B0=B0=ED=8F=AC=20?= =?UTF-8?q?=EC=8B=9C=20.env=20=EA=B6=8C=ED=95=9C=20640=20=EB=B3=B4?= =?UTF-8?q?=EC=9E=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Stage/Production 배포 스크립트에 chmod 640 추가 - vi 편집으로 인한 .env 권한 변경(600) 방지 - 2026-03-03 장애 재발 방지 (PHP-FPM이 .env 읽기 실패 → 500) Co-Authored-By: Claude Opus 4.6 --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index f76fef7..0a5af7b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,6 +40,7 @@ pipeline { sudo chown -R www-data:webservice storage bootstrap/cache && sudo chmod -R 775 storage bootstrap/cache && ln -sfn /home/webservice/api-stage/shared/.env .env && + sudo chmod 640 /home/webservice/api-stage/shared/.env && ln -sfn /home/webservice/api-stage/shared/storage/app storage/app && composer install --no-dev --optimize-autoloader --no-interaction && php artisan config:cache && @@ -86,6 +87,7 @@ pipeline { sudo chown -R www-data:webservice storage bootstrap/cache && sudo chmod -R 775 storage bootstrap/cache && ln -sfn /home/webservice/api/shared/.env .env && + sudo chmod 640 /home/webservice/api/shared/.env && ln -sfn /home/webservice/api/shared/storage/app storage/app && composer install --no-dev --optimize-autoloader --no-interaction && php artisan config:cache &&