Skip to content

Commit

Permalink
README.md: describe how to run the server with autoreloading on too
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Feb 6, 2024
1 parent 775a8b2 commit 0e3676c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ v run main.v
When the server is intialized, it will print the URL to open in your browser to look through
these materials.

## Development

While writing new documentation, it is often nice to be able to focus
on just writing, and not restarting the webserver every time you want
to see how will your edits look like in your browser.

To achieve that, start your server like this:
```
v -d vweb_livereload watch --add 'lessons/*' run .
```
V will recompile your server on each detected change, and your page
will refresh itself after that happens.

## Usage with Docker

For convenience, there is also a [Dockerfile](Dockerfile) in this repository.
Expand Down

0 comments on commit 0e3676c

Please sign in to comment.