diff --git a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php index a1bf59fb02..0bb84c6b4e 100644 --- a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php +++ b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php @@ -667,11 +667,11 @@ class Builds extends Action // Enter output directory, if set if (!empty($resource->getAttribute('outputDirectory', ''))) { - $listFilesCommand .= 'cd ' . \escapeshellarg($resource->getAttribute('outputDirectory', '')); + $listFilesCommand .= ' && cd ' . \escapeshellarg($resource->getAttribute('outputDirectory', '')); } // Print files, and end separation - $listFilesCommand .= 'find . -name \'node_modules\' -prune -o -type f -print && echo "{APPWRITE_DETECTION_SEPARATOR_END}"'; + $listFilesCommand .= ' && find . -name \'node_modules\' -prune -o -type f -print && echo "{APPWRITE_DETECTION_SEPARATOR_END}"'; // Use SSR file listing if (empty($command)) { diff --git a/tests/e2e/Services/Sites/SitesCustomServerTest.php b/tests/e2e/Services/Sites/SitesCustomServerTest.php index 7a73e29b02..f9d5b4acdf 100644 --- a/tests/e2e/Services/Sites/SitesCustomServerTest.php +++ b/tests/e2e/Services/Sites/SitesCustomServerTest.php @@ -524,7 +524,6 @@ class SitesCustomServerTest extends Scope $this->assertNotEmpty($deploymentId); $site = $this->getSite($siteId); - \var_dump($site); $this->assertEquals('200', $site['headers']['status-code']); $this->assertEquals('static', $site['body']['adapter']); $this->assertEquals('main.html', $site['body']['fallbackFile']);