diff --git a/deploy.php b/deploy.php index cec7df2..580f5b0 100644 --- a/deploy.php +++ b/deploy.php @@ -45,13 +45,13 @@ task('webpack_encore:build', function () { }); // Restart Docker containers (entrypoint gère les migrations automatiquement) -// cache:clear avant restart : le nouveau code est déjà visible via bind mount, -// mais var/ est un volume Docker persistant qui garde l'ancien cache Symfony. +// Le cache:clear est fait APRÈS le restart : Docker résout le bind mount au démarrage +// du container, pas dynamiquement. Avant restart, docker exec voit encore l'ancienne release. desc('Restart Docker containers'); task('docker:restart', function () { - run('docker exec mangarr php bin/console cache:clear --env=prod'); run('docker restart mangarr-worker-commands mangarr-worker-events mangarr-worker-scheduler'); run('docker restart mangarr'); + run('docker exec mangarr php bin/console cache:clear --env=prod'); }); // Pas de PHP sur l'hôte : désactiver les tâches Symfony qui en ont besoin