Skip to content
Snippets Groups Projects

Add helper script to build/run the site locally

Closed Sjoerd Simons requested to merge wip/sjoerd/runner into master
1 unresolved thread
run-hugo.sh 0 → 100755
+ 14
0
#!/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
Loading