de-swebhosting/typo3-surf-hardlink-release

Hardlink releases for TYPO3 Surf

Installs: 499

Dependents: 1

Suggesters: 1

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/de-swebhosting/typo3-surf-hardlink-release

v1.1.0 2023-05-11 10:53 UTC

This package is auto-updated.

Last update: 2025-10-06 20:04:30 UTC


README

Run tests and linting

This repo provides a task for TYPO3 Surf to release your application with hardlinks instead of softlinks.

How it works

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

How to use

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);