PR review changes

This commit is contained in:
Matej Bačo
2025-03-08 20:44:54 +01:00
parent 83dd6a9897
commit 8a4954d4e8
7 changed files with 8 additions and 7 deletions
@@ -709,6 +709,7 @@ class Builds extends Action
}
if ($resource->getCollection() === 'sites' && empty($resource->getAttribute('adapter'))) {
// TODO: Refactor with structured command in future, using utopia library (CLI)
$listFilesCommand = "cd /usr/local/build && cd " . \escapeshellarg($resource->getAttribute('outputDirectory')) . " && find . -name 'node_modules' -prune -o -type f -print";
$command = $executor->createCommand(
deploymentId: $deployment->getId(),
+1 -1
View File
@@ -34,7 +34,7 @@ class Screenshot extends Action
$template = \array_shift($allowedTemplates);
if (empty($template)) {
throw new \Exception("Template {$templateId} not found. Find correct ID in app/config/site-templates.php");
throw new \Exception("Template {$templateId} not found. Find correct ID in app/config/templates/site.php");
}
Console::info("Found: " . $template['name']);