correction read me, caddyfile
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
@@ -25,6 +25,12 @@
|
|||||||
{$PHPINI_EXTRA_CONFIG}
|
{$PHPINI_EXTRA_CONFIG}
|
||||||
}
|
}
|
||||||
worker {
|
worker {
|
||||||
|
file /app/public/index.php
|
||||||
|
watch
|
||||||
|
name hydra-sql-worker
|
||||||
|
{$FRANKENPHP_WORKER_CONFIG}
|
||||||
|
}
|
||||||
|
{$FRANKENPHP_CONFIG}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,12 +45,6 @@
|
|||||||
php_server {
|
php_server {
|
||||||
try_files {path} index.php
|
try_files {path} index.php
|
||||||
}
|
}
|
||||||
file /app/public/index.php
|
|
||||||
watch
|
|
||||||
name hydra-sql-worker
|
|
||||||
{$FRANKENPHP_WORKER_CONFIG}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@phpFile {
|
@phpFile {
|
||||||
path *.php*
|
path *.php*
|
||||||
|
26
readme.md
26
readme.md
@@ -119,29 +119,3 @@ modifier si besoin le fichier theme-entrypoints.js
|
|||||||
lancer un `npm run build`
|
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
|
|
Reference in New Issue
Block a user