diff --git a/api/setup/analyzeMenuUrl.php b/api/setup/analyzeMenuUrl.php index 0f7c391..c0246da 100644 --- a/api/setup/analyzeMenuUrl.php +++ b/api/setup/analyzeMenuUrl.php @@ -190,7 +190,7 @@ JSEOF; file_put_contents($scriptPath, $script); } - $output = shell_exec("PLAYWRIGHT_BROWSERS_PATH=/opt/playwright/browsers /usr/bin/node $scriptPath " . escapeshellarg($platformUrl) . " " . escapeshellarg($tempFile) . " 2>&1"); + $output = shell_exec("cd /opt/playwright && PLAYWRIGHT_BROWSERS_PATH=/opt/playwright/browsers /usr/bin/node $scriptPath " . escapeshellarg($platformUrl) . " " . escapeshellarg($tempFile) . " 2>/tmp/platform-images-stderr.log"); @unlink($tempFile); $result = json_decode(trim($output ?? ''), true);