From d2eabce775eb0a0fedd90a7dfe1a29fb91e10e0f Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Fri, 5 Jan 2024 11:25:35 -0500 Subject: [PATCH] doc: add section showing how to use as a Symfony CLI worker (#56) * doc: add section showing how to use as a Symfony CLI worker * Update doc/index.rst Co-authored-by: Victor Bocharsky --------- Co-authored-by: Victor Bocharsky --- doc/index.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/index.rst b/doc/index.rst index 14cc429..419f506 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -63,6 +63,25 @@ Then run the command: And that's it! +Symfony CLI +~~~~~~~~~~~ + +If using the `Symfony CLI `_, you can add the build +command as a `worker `_ +to be started whenever you run ``symfony server:start``: + +.. code-block:: yaml + # .symfony.local.yaml + workers: + # ... + tailwind: + cmd: ['symfony', 'console', 'sass:build', '--watch'] + +.. tip:: + + If running ``symfony server:start`` as a daemon, you can run + ``symfony server:log`` to tail the output of the worker. + How Does it Work? -----------------