Add a "production" argument to the dev_server script
When this argument is passed, set the environment to "production".
This commit is contained in:
parent
612a0425a2
commit
d6e56e2ab7
1 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,13 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
# Eryn Wells <eryn@erynwells.me>
|
# Eryn Wells <eryn@erynwells.me>
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue