correction read me, caddyfile
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2025-10-06 14:44:16 +02:00
parent a2346cfd34
commit 21cef8a495
2 changed files with 6 additions and 32 deletions

View File

@@ -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
}
file /app/public/index.php
watch
name hydra-sql-worker
{$FRANKENPHP_WORKER_CONFIG}
}
}
@phpFile {
path *.php*

View File

@@ -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