From 739a4c49f78880a6a348b5bdd9bd3954c4fde68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sun, 18 Oct 2026 18:21:06 +0200 Subject: [PATCH] fix: write cachetool temp script to shared typo3temp PHP workers with a stale realpath cache still resolve the current symlink to the previous release and returned 404 for the script placed in the new one. Co-Authored-By: Claude Opus 5.5 --- deploy.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy.php b/deploy.php index 882b7db1..47aeac82 100644 --- a/deploy.php +++ b/deploy.php @@ -70,7 +70,10 @@ host('prod') ->set('writable_mode', 'chmod') ->set('rsync_src', __DIR__) ->set('rsync', $rsyncOptions) - ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/{{typo3_webroot}}/ --web-url=https://www.ep-reisen.de') + // The temp script goes into the shared typo3temp, which resolves to the same directory from every + // release: PHP workers with a stale realpath cache still map "current" to the previous release and + // would 404 on a script placed inside the new one. + ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{deploy_path}}/shared/{{typo3_webroot}}/typo3temp/ --web-url=https://www.ep-reisen.de/typo3temp') ; task('deploy', [