From 58348b3ad1c2c1c7b79c2a6f600e0b65ca6bdc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 6 Dec 2023 11:30:11 +0100 Subject: [PATCH] chore: cleanup deployer config --- deploy.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/deploy.php b/deploy.php index f64570cd..734c11c1 100644 --- a/deploy.php +++ b/deploy.php @@ -8,9 +8,7 @@ require 'contrib/cachetool.php'; set('typo3_webroot', 'public'); set('application', 'ep-reisen-typo3'); set('repository', 'git@github.com:dreipunktnull/ep-reisen'); - -set('git_tty', false); -set('ssh_type', 'native'); +set('keep_releases', 3); add('shared_files', [ '{{typo3_webroot}}/typo3conf/LocalConfiguration.php', @@ -101,19 +99,18 @@ task('deploy', [ 'deploy:release', 'deploy:assets:build', 'rsync', - 'deploy:clear_paths', 'deploy:shared', + 'deploy:writable', 'typo3:database:migrate', 'typo3:language:update', 'typo3:cache:flush', - 'deploy:symlink', + 'deploy:publish', 'deploy:buspronet:symlink', - 'deploy:unlock', 'cachetool:clear:opcache', ]); task('deploy:buspronet:symlink', function () { - run('ln -s {{buspronet_path}} {{release_path}}/public/buchung'); + run('ln -s {{buspronet_path}} {{release_or_current_path}}/public/buchung'); }); task ('deploy:assets:build', function () { @@ -121,15 +118,15 @@ task ('deploy:assets:build', function () { }); task('typo3:database:migrate', function () { - run('{{bin/php}} {{release_path}}/vendor/bin/typo3cms database:updateschema'); + run('{{bin/php}} {{release_or_current_path}}/vendor/bin/typo3cms database:updateschema'); }); task('typo3:language:update', function () { - run('{{bin/php}} {{release_path}}/vendor/bin/typo3cms language:update'); + run('{{bin/php}} {{release_or_current_path}}/vendor/bin/typo3cms language:update'); }); task('typo3:cache:flush', function () { - run('{{bin/php}} {{release_path}}/vendor/bin/typo3cms cache:flush'); + run('{{bin/php}} {{release_or_current_path}}/vendor/bin/typo3cms cache:flush'); }); after('deploy:failed', 'deploy:unlock');