feat: generate image thumbnails after deployment

This commit is contained in:
Björn Fromme
2024-11-29 13:16:52 +01:00
parent 1c55b4785c
commit 30111df408
3 changed files with 76 additions and 0 deletions
+5
View File
@@ -92,6 +92,7 @@ task('deploy', [
'database:migrate',
'deploy:publish',
'cachetool:clear:opcache',
'deploy:thumbnails',
// 'deploy:stop-workers',
]);
@@ -103,4 +104,8 @@ task('deploy:assets', function () {
runLocally('npm i && npm run build');
});
task('deploy:thumbnails', function () {
run('{{bin/console}} app:generate-thumbnails');
});
after('deploy:failed', 'deploy:unlock');