fix:Docker 컨테이너 내 서비스 계정 파일 경로 추가

- /var/www/sales/apikey/ 경로 우선 검색
- Docker 볼륨 마운트된 sales 폴더에서 접근 가능

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
pro
2026-01-28 00:07:42 +09:00
parent 0bf41cc273
commit d1660aa9fe

View File

@@ -128,8 +128,9 @@ private function callVertexAiApi(AiConfig $config, string $base64Image): array
*/
private function getAccessToken(): ?string
{
// 여러 경로에서 서비스 계정 파일 찾기
// 여러 경로에서 서비스 계정 파일 찾기 (Docker 컨테이너 및 호스트)
$possiblePaths = [
'/var/www/sales/apikey/google_service_account.json', // Docker 컨테이너 내 sales 볼륨
self::SERVICE_ACCOUNT_PATH,
storage_path('app/google_service_account.json'),
base_path('../sales/apikey/google_service_account.json'),