This repo provides a task for TYPO3 Surf to release your application with hardlinks instead of softlinks.
When the application is released, the release directory is copied to next using hardlinks:
cp -al 20201228192426 next
To switch the release to the new version, the directories current and next are moved:
mv ./current ./previous
mv ./next ./current
In the registerTasks()
method of your application you can use the HardlinkReleaseRegisterer
to
replace the symlink release with a hardlink release:
(new \De\SWebhosting\TYPO3Surf\HardlinkReleaseRegisterer())
->replaceSymlinkWithHardlinkRelease($workflow, $this);