From 4bf08559641de20df42fd8e2cfdde99e5d93c446 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Mon, 2 Feb 2026 21:37:05 +0100 Subject: [PATCH] fix: deploy path --- deployer/typo3-recipe.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/deployer/typo3-recipe.php b/deployer/typo3-recipe.php index eed01ce..b63dab3 100644 --- a/deployer/typo3-recipe.php +++ b/deployer/typo3-recipe.php @@ -21,6 +21,15 @@ require 'recipe/common.php'; require 'contrib/rsync.php'; require 'contrib/cachetool.php'; +set('release_or_current_path', function () { + $releaseExists = test('[ -h {{deploy_path}}/release ]'); + if ($releaseExists) { + $link = run("readlink {{deploy_path}}/release"); + return substr($link, 0, 1) === '/' ? $link : get('deploy_path') . '/' . $link; + } + return get('current_path'); +}); + // ============================================================================= // PHP Configuration // ============================================================================= @@ -52,7 +61,6 @@ set('writable_dirs', [ // ============================================================================= set('rsync_src', '../'); - set('rsync', [ 'exclude' => [ // Shared (will be symlinked)