Description
Hello,
I noticed that the default compose.override.yaml configuration uses:
environment:
FRANKENPHP_WORKER_CONFIG: watch
However, this appears to be unreliable on Docker Desktop (Windows). Explicitly specifying the watched directory fixes the issue completely:
environment:
FRANKENPHP_WORKER_CONFIG: "watch /app"
Environment
symfony-docker: latest version
OS: Windows 10
Docker Desktop: 4.59
Observed behavior
With the default config (watch):
PHP and Twig code changes are not detected
Changes are only applied:
- After restarting the container,
- After triggering a 500 error,
With explicit path (watch /app):
environment:
FRANKENPHP_WORKER_CONFIG: "watch /app"
- Changes are detected immediately
- Hot reload works reliably
Additional notes
This change fully resolved the issue in my environment and does not appear to have any negative side effects.
Thanks for maintaining this excellent project!
Description
Hello,
I noticed that the default compose.override.yaml configuration uses:
However, this appears to be unreliable on Docker Desktop (Windows). Explicitly specifying the watched directory fixes the issue completely:
Environment
symfony-docker: latest version
OS: Windows 10
Docker Desktop: 4.59
Observed behavior
With the default config (watch):
PHP and Twig code changes are not detected
Changes are only applied:
With explicit path (watch /app):
Additional notes
This change fully resolved the issue in my environment and does not appear to have any negative side effects.
Thanks for maintaining this excellent project!