Skip to content

Conversation

dunglas
Copy link
Owner

@dunglas dunglas commented Mar 26, 2025

Use the new "watcher" feature of FrankenPHP 1.4 to enable the worker mode in dev. Workers are automatically restarted when a file change.

Copy link

@deluxetom deluxetom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much cleaner this way, thanks!

@94noni
Copy link
Contributor

94noni commented Mar 26, 2025

hello, just for my knowledge, how does this PR refers to #717 ?
is it for same goal but different implem? thx

@Trim
Copy link
Contributor

Trim commented Mar 26, 2025 via email

@dunglas dunglas changed the title feat: enabled workers in dev (watchers) feat: enable workers in dev (watchers) Mar 26, 2025
@dunglas
Copy link
Owner Author

dunglas commented Mar 26, 2025

--watch is something else, it hints Caddy to watch for changes in Caddyfile

@dunglas dunglas merged commit 330ea24 into main Mar 27, 2025
2 checks passed
@dunglas dunglas deleted the feat/dev-worker branch March 27, 2025 08:55
@maxhelias
Copy link
Collaborator

@dunglas Just to be sure, we now activate worker mode regardless of the environment and enable the watcher only in dev ?

@dunglas
Copy link
Owner Author

dunglas commented Mar 27, 2025

Yes!

@ArmandArthur
Copy link

Where run --watch command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants