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', [