erynwells.me/dev_server.sh
Eryn Wells d6e56e2ab7 Add a "production" argument to the dev_server script
When this argument is passed, set the environment to "production".
2024-10-27 09:58:42 -06:00

13 lines
320 B
Bash
Executable file

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