erynwells.me/dev_server.sh

13 lines
296 B
Bash
Raw Permalink Normal View History

2022-01-23 11:55:27 -08:00
#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
if [[ "$1" == "production" ]]; then
hugo server \
--buildFuture \
--noHTTPCache \
--enableGitInfo \
--environment production
else
hugo server --buildDrafts --buildFuture --noHTTPCache --enableGitInfo
fi