File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,31 @@ server provides a ``run`` command to wrap them as follows:
277
277
# stop the web server (and all the associated commands) when you are finished
278
278
$ symfony server:stop
279
279
280
+ Configuring Workers
281
+ -------------------
282
+
283
+ If you like some processes to start automatically, along with the webserver
284
+ (``symfony server:start ``), add a configuration file to your project:
285
+
286
+ .. code-block :: yaml
287
+
288
+ # .symfony.local.yaml
289
+ workers :
290
+ # built-in command that builds and watches front-end assets
291
+ # yarn_encore_watch:
292
+ # cmd: ['yarn', 'encore', 'dev', '--watch']
293
+ yarn_encore_watch : ~
294
+
295
+ # built-in command that starts messenger consumer
296
+ # messenger_consume_async:
297
+ # cmd: ['symfony', 'console', 'messenger:consume', 'async']
298
+ # watch: ['config', 'src', 'templates', 'vendor']
299
+ messenger_consume_async : ~
300
+
301
+ # you can also add your own custom commands
302
+ build_spa :
303
+ cmd : ['yarn', '--cwd', './spa/', 'dev']
304
+
280
305
.. _symfony-server-docker :
281
306
282
307
Docker Integration
You can’t perform that action at this time.
0 commit comments