diff --git a/deploy.php b/deploy.php index 26f7f01..cec7df2 100644 --- a/deploy.php +++ b/deploy.php @@ -45,8 +45,11 @@ 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. 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'); });