mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
PR review changes
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user