2022-09-04 17:03:46 -06:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
case "$(hostname)" in
|
|
|
|
sweetums)
|
|
|
|
baseURL=http://sweetums.lan:1313/
|
|
|
|
;;
|
2022-10-09 20:59:33 -06:00
|
|
|
penguin)
|
|
|
|
baseURL=http://penguin.linux.test:1313/
|
|
|
|
;;
|
2022-09-04 17:03:46 -06:00
|
|
|
*)
|
|
|
|
baseURL=http://$(hostname --fqdn):1313/
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
docker run \
|
|
|
|
--rm -i \
|
|
|
|
-v $(realpath $(dirname $0)):/src \
|
|
|
|
-u $(id -u):$(id -g) \
|
2022-09-04 19:54:41 -06:00
|
|
|
-p 1313:1313 \
|
2022-09-04 17:03:46 -06:00
|
|
|
klakegg/hugo:ext server \
|
2022-10-10 13:19:19 -06:00
|
|
|
--buildFuture \
|
|
|
|
--buildDrafts \
|
2022-09-04 17:03:46 -06:00
|
|
|
--baseURL "$baseURL"
|