Update readme with hugo build instructions

This commit is contained in:
Brad Treloar 2025-03-09 02:29:19 +10:30
parent 847ebc28fe
commit 8333a2ce0d
2 changed files with 10 additions and 11 deletions

View file

@ -1,18 +1,13 @@
# Notes server
## Set up mkdocs and build HTML
## Set up hugo and build HTML
````bash
# Set up a Python virtualenv for mkdocs.
sudo apt install virtualenv
virtualenv .venv
. .venv/bin/activate
# Install mkdocs.
pip install mkdocs
# Install hugo.
sudo api install hugo
# Build the HTML.
mkdocs build
hugo build
```
## Build and run server
@ -25,7 +20,11 @@ mkdocs build
docker build --no-cache -t notes-server .
# Run the image, listening on port 42069.
docker run --mount type=bind,src=./site,dst=/usr/share/nginx/html -p 42069:80 -t notes-server
docker run -d \
--name notes-server \
-v "/var/www/html/notes/hugo/public:/usr/share/nginx/html" \
-p 42069:80 \
notes-server
````
## Auth credentials setup

View file

@ -6,7 +6,7 @@ docker build --no-cache -t notes-server .
# Run the notes-server image.
docker run -d \
--name notes-server \
-v "/var/www/html/notes/site:/usr/share/nginx/html" \
-v "/var/www/html/notes/hugo/public:/usr/share/nginx/html" \
-p 42069:80 \
notes-server