Skip to content

Commit 7f599ff

Browse files
authored
Merge pull request #48858 from sftim/20241126_build_drafts_container_serve
Build draft content for local preview
2 parents 640cc03 + 0372851 commit 7f599ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ non-production-build: module-check ## Build the non-production site, which adds
5656
GOMAXPROCS=1 hugo --cleanDestinationDir --enableGitInfo --environment nonprod
5757

5858
serve: module-check ## Boot the development server.
59-
hugo server --buildFuture --environment development
59+
hugo server --buildDrafts --buildFuture --environment development
6060

6161
docker-image:
6262
@echo -e "$(CCRED)**** The use of docker-image is deprecated. Use container-image instead. ****$(CCEND)"
@@ -107,7 +107,7 @@ container-build: module-check
107107
container-serve: module-check ## Boot the development server using container.
108108
$(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only \
109109
--mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) \
110-
hugo server --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/public --cleanDestinationDir --noBuildLock
110+
hugo server --buildDrafts --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/public --cleanDestinationDir --noBuildLock
111111

112112
test-examples:
113113
scripts/test_examples.sh install

0 commit comments

Comments
 (0)