add a 'restart' action to watch attribute in the develop section#423
add a 'restart' action to watch attribute in the develop section#423glours merged 1 commit intocompose-spec:masterfrom
Conversation
develop.md
Outdated
| - `rebuild`, Compose rebuilds the service image based on the `build` section and recreates the service with the updated image. | ||
| - `sync`, Compose keeps the existing service container(s) running, but synchronizes source files with container content according to the `target` attribute. | ||
| - `sync`, Compose keeps the existing service container(s) running, but synchronizes source files with container content according to the `target` attribute. | ||
| - `restart`, Compose synchronizes source files with container content according to the `target` attribute. and then restarts the container. |
There was a problem hiding this comment.
| - `restart`, Compose synchronizes source files with container content according to the `target` attribute. and then restarts the container. | |
| - `restart`, Compose synchronizes source files with container content according to the `target` attribute, and then restarts the container. |
Wrong button..
There was a problem hiding this comment.
I wonder restart actually also does a sync, and at some point we might want to introduce support for some "restart-only" action. So I'd suggest we introduce a more explicit sync+restart action - or any better notation, be creative ;)
There was a problem hiding this comment.
I'm fine with this option let's do that 👍
There was a problem hiding this comment.
Done! Thanks to both of you 🤗
develop.md
Outdated
| - `rebuild`, Compose rebuilds the service image based on the `build` section and recreates the service with the updated image. | ||
| - `sync`, Compose keeps the existing service container(s) running, but synchronizes source files with container content according to the `target` attribute. | ||
| - `sync`, Compose keeps the existing service container(s) running, but synchronizes source files with container content according to the `target` attribute. | ||
| - `restart`, Compose synchronizes source files with container content according to the `target` attribute. and then restarts the container. |
There was a problem hiding this comment.
I wonder restart actually also does a sync, and at some point we might want to introduce support for some "restart-only" action. So I'd suggest we introduce a more explicit sync+restart action - or any better notation, be creative ;)
Signed-off-by: Guillaume Lours <[email protected]>
What this PR does / why we need it:
Add a new action
restartto thewatchattribute of the develop section.This action will first sync files and the restart the container.
Which issue(s) this PR fixes:
Fixes docker/compose#11062