fix: the release links fileadmin with a relative symlink
The vhosts answer 403 for files behind the absolute symlink (tested on staging); Deployer's shared dirs are relative and work. The task now also checks that the link resolves. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
e733a53935
commit
29f39fb440
1 file changed
+3
-1
+3
-1
@@ -160,7 +160,9 @@ task('typo3:cache:flush', function () {
|
||||
desc('Link the production fileadmin into the release');
|
||||
task('typo3:fileadmin', function () {
|
||||
run('test -d {{fileadmin_path}}');
|
||||
run('ln -sfn {{fileadmin_path}} {{release_path}}/{{typo3/public_dir}}/fileadmin');
|
||||
// Relative (-r), like Deployer's shared dirs: the vhosts answer 403 for an absolute symlink here
|
||||
run('ln -sfnr {{fileadmin_path}} {{release_path}}/{{typo3/public_dir}}/fileadmin');
|
||||
run('test -d {{release_path}}/{{typo3/public_dir}}/fileadmin/user_upload');
|
||||
});
|
||||
|
||||
desc('Deploys TYPO3 13');
|
||||
|
||||
Reference in new issue
Block a user