Skip to content

Commit

Permalink
doc: add section showing how to use as a Symfony CLI worker (#56)
Browse files Browse the repository at this point in the history
* doc: add section showing how to use as a Symfony CLI worker

* Update doc/index.rst

Co-authored-by: Victor Bocharsky <[email protected]>

---------

Co-authored-by: Victor Bocharsky <[email protected]>
  • Loading branch information
kbond and bocharsky-bw authored Jan 5, 2024
1 parent 7184c2a commit d2eabce
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@ Then run the command:
And that's it!

Symfony CLI
~~~~~~~~~~~

If using the `Symfony CLI <https://symfony.com/download>`_, you can add the build
command as a `worker <https://symfony.com/doc/current/setup/symfony_server.html#configuring-workers>`_
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?
-----------------

Expand Down

0 comments on commit d2eabce

Please sign in to comment.