Skip to content
Snippets Groups Projects
Commit e606ff0b authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Emanuele Aina
Browse files

Add helper script to build/run the site locally


While developing pages it's quite useful to be able to run and browse
the website locally; Add a trivial helper script to setup a docker
container to do just that.

Signed-off-by: default avatarSjoerd Simons <sjoerd@collabora.com>
parent 6755c6ba
No related branches found
No related tags found
1 merge request!198Add helper script to build/run the site locally
Pipeline #254887 passed
#!/bin/sh
# Run hugo in server mode and let it bind on all interface in the container
# such that docker can forward it properly.
# Website will be available at http://localhost:1313/ while this is running
REPO=$(dirname $(realpath $0))
docker run \
-p 1313:1313/tcp \
-u $(id -u) \
-v ${REPO}:/src \
klakegg/hugo \
server
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment