diff --git a/deploy.php b/deploy.php index 0b30dd4..e507a64 100644 --- a/deploy.php +++ b/deploy.php @@ -87,7 +87,7 @@ desc('Build the release locally: committed state, production dependencies, theme task('build', function () { // Inside DDEV directly, on the host through "ddev exec" (paths relative to the project root) $inDdev = getenv('IS_DDEV_PROJECT') === 'true'; - $exec = fn (string $command) => runLocally($inDdev + $exec = fn(string $command) => runLocally($inDdev ? $command : 'ddev exec bash -c ' . escapeshellarg($command)); runLocally('rm -rf {{build_dir}} && mkdir -p {{build_dir}}');