Update readme with hugo build instructions
This commit is contained in:
parent
847ebc28fe
commit
8333a2ce0d
2 changed files with 10 additions and 11 deletions
19
README.md
19
README.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue