fix(deploy): corriger la race condition sur le cache prod au déploiement #43

Merged
colgora merged 2 commits from fix/deploy-cache-race-condition into main 2026-03-27 14:29:07 +01:00
Owner

L'entrypoint faisait rm -rf var/cache/prod puis lançait FrankenPHP.
FrankenPHP compilait partiellement le container DI pendant que le script
Deployer lançait aussi cache:clear → fichiers manquants → crash.

  • entrypoint.sh : ajouter cache:warmup après rm -rf, avant exec FrankenPHP
    (l'entrypoint est séquentiel, FrankenPHP ne démarre qu'une fois le cache prêt)
  • deploy.php : supprimer le docker exec cache:clear devenu inutile et dangereux
L'entrypoint faisait rm -rf var/cache/prod puis lançait FrankenPHP. FrankenPHP compilait partiellement le container DI pendant que le script Deployer lançait aussi cache:clear → fichiers manquants → crash. - entrypoint.sh : ajouter cache:warmup après rm -rf, avant exec FrankenPHP (l'entrypoint est séquentiel, FrankenPHP ne démarre qu'une fois le cache prêt) - deploy.php : supprimer le docker exec cache:clear devenu inutile et dangereux
colgora added 1 commit 2026-03-27 14:28:54 +01:00
L'entrypoint faisait rm -rf var/cache/prod puis lançait FrankenPHP.
FrankenPHP compilait partiellement le container DI pendant que le script
Deployer lançait aussi cache:clear → fichiers manquants → crash.

- entrypoint.sh : ajouter cache:warmup après rm -rf, avant exec FrankenPHP
  (l'entrypoint est séquentiel, FrankenPHP ne démarre qu'une fois le cache prêt)
- deploy.php : supprimer le docker exec cache:clear devenu inutile et dangereux
colgora added 1 commit 2026-03-27 14:29:00 +01:00
colgora merged commit d1279c90cc into main 2026-03-27 14:29:07 +01:00
colgora deleted branch fix/deploy-cache-race-condition 2026-03-27 14:29:07 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: colgora/Mangarr#43