cullmann.io/server.sh

12 lines
302 B
Bash
Raw Normal View History

2021-12-05 16:36:24 +01:00
#!/usr/bin/env zsh
2019-04-15 20:00:00 +02:00
# failures are evil
set -e
2019-08-04 12:03:31 +02:00
# export the GIT env vars we need to have links in the footer
export GIT_COMMIT_SHA=`git rev-parse --verify HEAD`
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
2019-04-15 20:00:00 +02:00
# run hugo in local server mode, show all stuff
2021-01-24 21:39:31 +01:00
exec hugo server -D --buildFuture