fix: deploy path
All checks were successful
Self Test / test (push) Successful in 13s

This commit is contained in:
Dominik Polakovics Polakovics 2026-02-02 21:37:05 +01:00
parent cb4939bd85
commit 4bf0855964

View file

@ -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)