diff --git a/ansible/deploy.yml b/ansible/deploy.yml index e53207d..7675767 100644 --- a/ansible/deploy.yml +++ b/ansible/deploy.yml @@ -128,12 +128,22 @@ args: chdir: /var/www/e-ticket + - name: Clear Symfony cache before migration + command: docker compose -f docker-compose-prod.yml exec -T php php bin/console cache:clear --env=prod + args: + chdir: /var/www/e-ticket + + - name: Clear Redis cache pool (Doctrine L2 + app cache) + command: docker compose -f docker-compose-prod.yml exec -T php php bin/console cache:pool:clear cache.app --env=prod + args: + chdir: /var/www/e-ticket + - name: Run migrations command: make migrate_prod args: chdir: /var/www/e-ticket - - name: Clear cache + - name: Clear cache after migration command: make clear_prod args: chdir: /var/www/e-ticket