From 21cef8a4950783783afe3bb76e492861d5a4384d Mon Sep 17 00:00:00 2001 From: rudy Date: Mon, 6 Oct 2025 14:44:16 +0200 Subject: [PATCH] correction read me, caddyfile --- misc/files/Caddyfile | 12 ++++++------ readme.md | 26 -------------------------- 2 files changed, 6 insertions(+), 32 deletions(-) diff --git a/misc/files/Caddyfile b/misc/files/Caddyfile index 1008159..8c9a8c4 100644 --- a/misc/files/Caddyfile +++ b/misc/files/Caddyfile @@ -25,6 +25,12 @@ {$PHPINI_EXTRA_CONFIG} } + worker { + file /app/public/index.php + watch + name hydra-sql-worker + {$FRANKENPHP_WORKER_CONFIG} + } {$FRANKENPHP_CONFIG} } } @@ -39,12 +45,6 @@ php_server { try_files {path} index.php - worker { - file /app/public/index.php - watch - name hydra-sql-worker - {$FRANKENPHP_WORKER_CONFIG} - } } @phpFile { diff --git a/readme.md b/readme.md index 1ae33fd..4ef7893 100644 --- a/readme.md +++ b/readme.md @@ -119,29 +119,3 @@ modifier si besoin le fichier theme-entrypoints.js lancer un `npm run build` -### watch-dev-optimized.sh - -L'option watch du worker frankenphp ne semble pas bien fonctionner pour le moment - -Script Bash pour le développement Symfony/FrankenPHP dans Docker : - il surveille les changements sur des dossiers spécifiés (/src, /templates, etc) et redémarre automatiquement le container correspondant pour refléter les changements en temps réel. - -Il ignore les dossiers var/cache et vendor pour éviter les redémarrages inutiles. - -#### context - -Si le mode watch de compose est activé, ne pas oublier de enable watch dans la console - -#### Pre requis -* Docker -* Docker compose -* inotify-tools (`sudo pacman -S inotify-tools`) - -#### Utilisation - -./watch-dev.sh [nom_du_container] - -le nom peut être partiel, par exemple `sql` -ou complet, par exemple `hydra-dev-hydra-sql-1` - -Chaque projet doit contenir son propre script de surveillance/redémarrage \ No newline at end of file