server.sh 297 Bytes
Newer Older
1 2 3 4 5
#!/bin/bash

# failures are evil
set -e

6 7 8 9
# 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`

10 11
# run hugo in local server mode, show all stuff
exec ./hugo server -D --buildFuture