Add run script
This commit is contained in:
parent
a9b22dc0e2
commit
4797178f08
|
@ -1,2 +1,3 @@
|
|||
.hugo_build.lock
|
||||
*~
|
||||
public/
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue