From d6e56e2ab79cee9dd09c677c8678f1daee7b1f60 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 27 Oct 2024 09:58:42 -0600 Subject: [PATCH] Add a "production" argument to the dev_server script When this argument is passed, set the environment to "production". --- dev_server.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dev_server.sh b/dev_server.sh index 6b5b386..43ab51d 100755 --- a/dev_server.sh +++ b/dev_server.sh @@ -1,4 +1,13 @@ #!/usr/bin/env zsh # Eryn Wells -hugo server --buildDrafts --buildFuture --noHTTPCache --enableGitInfo +if [[ "$1" == "production" ]]; then + hugo server \ + --buildDrafts \ + --buildFuture \ + --noHTTPCache \ + --enableGitInfo \ + --environment production +else + hugo server --buildDrafts --buildFuture --noHTTPCache --enableGitInfo +fi