fix: [deploy] 배포 시 .env 권한 640 보장 추가
- Stage/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:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user