mirror of https://github.com/docker/docs.git
fix watch (#18286)
Co-authored-by: Allie Sadler <alliesadler@f693mt7fh6.home>
This commit is contained in:
parent
0352b908f5
commit
2d050d2fc9
|
@ -6,7 +6,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "1313:1313"
|
- "1313:1313"
|
||||||
entrypoint: ["hugo", "server", "--bind", "0.0.0.0"]
|
entrypoint: ["hugo", "server", "--bind", "0.0.0.0"]
|
||||||
x-develop:
|
develop:
|
||||||
watch:
|
watch:
|
||||||
- action: sync
|
- action: sync
|
||||||
path: .
|
path: .
|
||||||
|
|
|
@ -75,8 +75,7 @@ $ cd docs
|
||||||
Then, build and run the documentation using [Docker Compose](../compose/index.md):
|
Then, build and run the documentation using [Docker Compose](../compose/index.md):
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker compose up -d --build
|
$ docker compose watch
|
||||||
$ docker compose alpha watch
|
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
|
@ -85,7 +84,7 @@ $ docker compose alpha watch
|
||||||
|
|
||||||
When the container is built and running, visit [http://localhost:1313](http://localhost:1313) in your web browser to view the docs.
|
When the container is built and running, visit [http://localhost:1313](http://localhost:1313) in your web browser to view the docs.
|
||||||
|
|
||||||
The [Docker Compose `watch`](../compose/file-watch.md) feature causes your
|
[Compose `watch`](../compose/file-watch.md) causes your
|
||||||
running container to rebuild itself automatically when you make changes to your
|
running container to rebuild itself automatically when you make changes to your
|
||||||
content files.
|
content files.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue