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)