Closed MarcoRemy closed 7 months ago
This is rather a support issue than an actual bug. Would you be willing to sponsor me for support?
This is actually an unexpected behaviour. The command should not affect the source git repository dir after all.
I've spent quite some time understanding the functionality of Surf and I don't think I've made a mistake. Reporting this issue is really the last resort.
I have just discovered that this only happens when Surf is run from the local Composer installation vendor/bin/surf
. If the directly downloaded phar is used alone with the deployment configuration file (outside the repo) the process works as expected.
There may be a problem switching to the correct working directory. The command is executed in the git repo where surf was called from.
I'll leave this here and no further help is needed. However, I still consider this a bug.
Thank you for your reply.
To fix any missing files and folders, I added a RunCommandTask with
install:fixfolderstructure
to the deployment of my TYPO3 package.Log output
Expected Behavior
According to the log output the working dir is correctly changed to the target release directory before the command is executed. So the working directory will be
/srv/www/typo3-deployed/releases/20240408154751
and the dirs and files should be created in there.Actual Behavior
Instead, the action is performed inside the initial repo directory from which the deployment was called.
This leaves the target release directory completely unaffected.
Side note: The command
language:update
won't download language files into the target release dir/srv/www/typo3-deployed/releases/20240408154751/var/labels
but/opt/typo3-cms-repo/var/labels
Specifications