fix: define the TYPO3 deploy tasks in deploy.php
The recipe's task names differ between Deployer versions; with a globally installed dep the deploy failed with 'Task typo3:extension:setup not found'. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
178a5e6c14
commit
64aa43c5af
1 file changed
+15
+15
@@ -9,6 +9,11 @@ require 'recipe/typo3.php';
|
|||||||
require 'contrib/rsync.php';
|
require 'contrib/rsync.php';
|
||||||
|
|
||||||
set('application', 'ep-reisen-typo3-13');
|
set('application', 'ep-reisen-typo3-13');
|
||||||
|
|
||||||
|
// Defined here rather than taken from recipe/typo3.php, whose task and setting names differ between
|
||||||
|
// Deployer versions (a globally installed "dep" may not be the project's vendor/bin/dep 8)
|
||||||
|
set('typo3/public_dir', 'public');
|
||||||
|
set('bin/typo3', 'vendor/bin/typo3');
|
||||||
set('keep_releases', 3);
|
set('keep_releases', 3);
|
||||||
|
|
||||||
// The release is built locally from the committed state, so nothing uncommitted is ever deployed
|
// The release is built locally from the committed state, so nothing uncommitted is ever deployed
|
||||||
@@ -133,6 +138,16 @@ task('typo3:secrets:check', function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
desc('TYPO3 - Set up all extensions (database schema: adds and changes only)');
|
||||||
|
task('typo3:extension:setup', function () {
|
||||||
|
run('{{bin/php}} {{release_path}}/{{bin/typo3}} extension:setup');
|
||||||
|
});
|
||||||
|
|
||||||
|
desc('TYPO3 - Clear all caches');
|
||||||
|
task('typo3:cache:flush', function () {
|
||||||
|
run('{{bin/php}} {{release_path}}/{{bin/typo3}} cache:flush');
|
||||||
|
});
|
||||||
|
|
||||||
desc('Link the production fileadmin into the release');
|
desc('Link the production fileadmin into the release');
|
||||||
task('typo3:fileadmin', function () {
|
task('typo3:fileadmin', function () {
|
||||||
run('test -d {{fileadmin_path}}');
|
run('test -d {{fileadmin_path}}');
|
||||||
|
|||||||
Reference in new issue
Block a user