mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
fix(builds-worker): Use outputDirectory attribute from deployment or
resource
This commit is contained in:
parent
f0b3f40a63
commit
b614045d97
1 changed files with 4 additions and 2 deletions
|
|
@ -692,9 +692,11 @@ class Builds extends Action
|
|||
// Start separation, enter build folder
|
||||
$listFilesCommand .= 'echo "{APPWRITE_DETECTION_SEPARATOR_START}" && cd /usr/local/build';
|
||||
|
||||
$outputDirectory = $deployment->getAttribute('outputDirectory') ?? $resource->getAttribute('outputDirectory');
|
||||
|
||||
// Enter output directory, if set
|
||||
if (!empty($resource->getAttribute('outputDirectory', ''))) {
|
||||
$listFilesCommand .= ' && cd ' . \escapeshellarg($resource->getAttribute('outputDirectory', ''));
|
||||
if ($outputDirectory !== null) {
|
||||
$listFilesCommand .= ' && cd ' . \escapeshellarg($resource->getAttribute('outputDirectory'));
|
||||
}
|
||||
|
||||
// Print files, and end separation
|
||||
|
|
|
|||
Loading…
Reference in a new issue