diff --git a/deploy.php b/deploy.php index 3ea1937..23d08da 100644 --- a/deploy.php +++ b/deploy.php @@ -9,6 +9,11 @@ require 'recipe/typo3.php'; require 'contrib/rsync.php'; 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); // 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'); task('typo3:fileadmin', function () { run('test -d {{fileadmin_path}}');