|
277 | 277 | ``` |
278 | 278 |
|
279 | 279 | ### `onUpload.exec` |
280 | | -The `onUpload.exec` option defines command(s) that should be executed after DevSpace uploaded files and folder to the container. DevSpace will make sure that those commands are not executed while initially syncing the state and command execution will also halt any syncing activities. |
| 280 | +The `onUpload.exec` option defines command(s) that should be executed after DevSpace uploaded files and folder to the container. DevSpace will ensure that those commands are not executed while initially syncing the state, and command execution will also halt any syncing activities. |
281 | 281 |
|
282 | | -If this is defined together with `onUpload.restartContainer`, DevSpace will make sure that the commands are always executed **before** the container is restarted. |
| 282 | +If this is defined together with `onUpload.restartContainer`, DevSpace will ensure that the commands are always executed **before** the container is restarted. |
283 | 283 |
|
284 | 284 | #### Example: Post-Upload Commands |
285 | 285 | ```yaml {14-29} |
|
373 | 373 |
|
374 | 374 | ### `noWatch` |
375 | 375 |
|
376 | | -If the `noWatch` option is specified, DevSpace will stop syncing after initially comparing and resolving differences. This is useful if you want a one-time sync but then continue doing other steps in your pipeline. |
| 376 | +If the `noWatch` option is specified, DevSpace will stop syncing after initially comparing and resolving differences. This is useful if you want a one-time sync, but then continue doing other steps in your pipeline. |
377 | 377 |
|
378 | 378 | ### `initialSync` |
379 | 379 | The `initialSync` option expects a string with an initial sync strategy. The following strategies are available: |
@@ -431,11 +431,11 @@ dev: |
431 | 431 | initialSync: preferRemote |
432 | 432 | ``` |
433 | 433 | **Explanation:** |
434 | | -With this configuration, `devspace dev` would do the following: |
| 434 | +With this configuration, `devspace dev` performs the following tasks: |
435 | 435 | - DevSpace would start port-forwarding and file synchronzation. |
436 | 436 | - Initial sync is started automatically. |
437 | | -- The first sync config section would synchronize all files except files within `node_modules/`. This means that during initial sync, all remote files that are not existing locally would be deleted and other files would be updated to the most recent version. |
438 | | -- The second sync config section would only synchronize files within `node_modules/` and because of `initialSync: preferRemote`, DevSpace would download all remote files which are not present on the local filesystem and override all local files which are different than the files within the container. |
| 437 | +- The first sync config section synchronizes all files except files within `node_modules/`. This means that during initial sync, all remote files that do not already exist locally are deleted, and other files are updated to the most recent version. |
| 438 | +- The second sync config section only synchronizes files within `node_modules/`. Because of `initialSync: preferRemote`, DevSpace downloads all remote files which are not present on the local filesystem and overrides all local files which are different than the files within the container. |
439 | 439 |
|
440 | 440 | ### `waitInitialSync` |
441 | 441 | The `waitInitialSync` option expects a boolean which defines if DevSpace should wait until the initial sync process has terminated before opening the container terminal or the multi-container log streaming. |
|
463 | 463 | waitInitialSync: false |
464 | 464 | ``` |
465 | 465 | **Explanation:** |
466 | | -With the configuration `devspace dev` would do the following: |
467 | | -- DevSpace would start port-forwarding and file synchronzation. |
| 466 | +With the configuration `devspace dev` the following actions will be taken: |
| 467 | +- DevSpace initiates port-forwarding and file synchronization. |
468 | 468 | - Initial sync would be started automatically. |
469 | 469 |
|
470 | 470 | - Before the initial sync process is finished, DevSpace starts the log streaming. |
|
0 commit comments