@@ -280,26 +280,26 @@ server provides a ``run`` command to wrap them as follows:
280
280
Configuring Workers
281
281
-------------------
282
282
283
- If you like processes to start automatically, along with the webserver
284
- (``symfony server:start ``),you can add a configuration file to your project:
283
+ If you likesome processes to start automatically, along with the webserver
284
+ (``symfony server:start ``), add a configuration file to your project:
285
285
286
286
..code-block ::yaml
287
287
288
288
# .symfony.local.yaml
289
289
workers :
290
- # pre-defined commandto build andwatch front-end assets
290
+ # built-in commandthat builds andwatches front-end assets
291
291
# yarn_encore_watch:
292
292
# cmd: ['yarn', 'encore', 'dev', '--watch']
293
293
yarn_encore_watch :~
294
294
295
- # pre-defined commandto start messenger consumer
295
+ # built-in commandthat starts messenger consumer
296
296
# messenger_consume_async:
297
297
# cmd: ['symfony', 'console', 'messenger:consume', 'async']
298
298
# watch: ['config', 'src', 'templates', 'vendor']
299
299
messenger_consume_async :~
300
300
301
- # additional commands
302
- spa :
301
+ # you can also add your own custom commands
302
+ build_spa :
303
303
cmd :['yarn', '--cwd', './spa/', 'dev']
304
304
305
305
Docker Integration