more debug logging

This commit is contained in:
Dominik Polakovics Polakovics 2026-02-13 13:14:21 +01:00
parent 15c86bde6e
commit 37fbaa575e

View file

@ -132,7 +132,11 @@ task('typo3:cache:flush', function () {
task('typo3:cache:warmup', function () { task('typo3:cache:warmup', function () {
cd('{{release_or_current_path}}'); cd('{{release_or_current_path}}');
run('{{bin/php}} bin/typo3 cache:warmup 2>&1'); // Append exit code so run() won't throw before we can read the output
$result = run('{{bin/php}} -d display_errors=1 bin/typo3 cache:warmup 2>&1; echo EXIT_CODE:$?');
if (!str_contains($result, 'EXIT_CODE:0')) {
throw new \RuntimeException("cache:warmup failed:\n" . $result);
}
})->desc('Warmup TYPO3 caches'); })->desc('Warmup TYPO3 caches');
task('typo3:language:update', function () { task('typo3:language:update', function () {