Add run script

This commit is contained in:
Neale Pickett 2022-09-04 17:03:46 -06:00
parent 67caf07d9c
commit 26b463846b
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.hugo_build.lock
*~ *~
public/ public/

17
run.sh Executable file
View File

@ -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"