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
+3 -3
View File
@@ -865,8 +865,8 @@ App::get('/v1/vcs/github/installations/:installationId/providerRepositories')
];
foreach ($strategies as $strategy) {
$redector = new Runtime($strategy === Strategy::LANGUAGES ? $languages : $files, $strategy, $packager);
$redector
$detector = new Runtime($strategy === Strategy::LANGUAGES ? $languages : $files, $strategy, $packager);
$detector
->addOption(new Node())
->addOption(new Bun())
->addOption(new Deno())
@@ -879,7 +879,7 @@ App::get('/v1/vcs/github/installations/:installationId/providerRepositories')
->addOption(new CPP())
->addOption(new Dotnet());
$runtime = $redector->detect();
$runtime = $detector->detect();
if (!\is_null($runtime)) {
$runtime = $runtime->getName();
+2 -2
View File
@@ -390,8 +390,8 @@ Config::load('storage-mimes', __DIR__ . '/config/storage/mimes.php');
Config::load('storage-inputs', __DIR__ . '/config/storage/inputs.php');
Config::load('storage-outputs', __DIR__ . '/config/storage/outputs.php');
Config::load('specifications', __DIR__ . '/config/specifications.php');
Config::load('function-templates', __DIR__ . '/config/function-templates.php');
Config::load('site-templates', __DIR__ . '/config/site-templates.php');
Config::load('function-templates', __DIR__ . '/config/templates/function.php');
Config::load('site-templates', __DIR__ . '/config/templates/site.php');
/**
* New DB Filters
+1 -1
View File
@@ -976,7 +976,7 @@ services:
# It's not possible to share mount file between 2 containers without host mount (copying is too slow)
- /tmp:/tmp:rw
environment:
- OPR_EXECUTOR_IMAGE_PULL=disabled
- OPR_EXECUTOR_IMAGE_PULL=enabled
- OPR_EXECUTOR_INACTIVE_TRESHOLD=$_APP_COMPUTE_INACTIVE_THRESHOLD
- OPR_EXECUTOR_MAINTENANCE_INTERVAL=$_APP_COMPUTE_MAINTENANCE_INTERVAL
- OPR_EXECUTOR_NETWORK=$_APP_COMPUTE_RUNTIMES_NETWORK
@@ -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']);