diff --git a/.gitignore b/.gitignore index 9b4a572..33bc3dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.hugo_build.lock *~ public/ diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..7688fa6 --- /dev/null +++ b/run.sh @@ -0,0 +1,17 @@ +#! /bin/sh + +case "$(hostname)" in + sweetums) + baseURL=http://sweetums.lan:1313/ + ;; + *) + baseURL=http://$(hostname --fqdn):1313/ + ;; +esac + +docker run \ + --rm -i \ + -v $(realpath $(dirname $0)):/src \ + -u $(id -u):$(id -g) \ + klakegg/hugo:ext server \ + --baseURL "$baseURL"