Fix deploy, each snip is a twig template that will be cached, but cant be generated if migrations did not run yet

This commit is contained in:
Tim 2025-04-25 22:38:02 +02:00
parent 7c4a2b46c0
commit 8553a06cd0

View File

@ -25,6 +25,8 @@ set('allow_anonymous_stats', false);
set('console_options', fn() => '--no-interaction'); set('console_options', fn() => '--no-interaction');
set('bin/console', fn() => parse('{{release_path}}/bin/console')); set('bin/console', fn() => parse('{{release_path}}/bin/console'));
set('composer_options', '--verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --no-scripts');
// Hosts // Hosts
host('snips.loken.nl') host('snips.loken.nl')
->setRemoteUser('www-data') ->setRemoteUser('www-data')
@ -60,9 +62,9 @@ desc('Deploy project');
task('deploy', [ task('deploy', [
'deploy:prepare', 'deploy:prepare',
'deploy:vendors', 'deploy:vendors',
'database:migrate',
'cache:clear', 'cache:clear',
'cache:warmup', 'cache:warmup',
'database:migrate',
'deployment:log', 'deployment:log',
'deploy:symlink', 'deploy:symlink',
'deploy:unlock', 'deploy:unlock',