Skip to content

Commit

Permalink
Resolves make site-server issue googleforgames#3885
Browse files Browse the repository at this point in the history
  • Loading branch information
aallbrig committed Jul 19, 2024
1 parent 03a0a4c commit bbc2f1f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build/includes/website.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@
#
# Website targets
#
UID := $(shell id -u)
GID := $(shell id -g)

# generate the latest website
site-server: ARGS ?=-F
site-server: ENV ?= RELEASE_VERSION="$(base_version)" RELEASE_BRANCH=main
site-server: ensure-build-image
docker run --user $(UID):$(GID) --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) -p 1313:1313 $(build_tag) bash -c \
"$(ENV) hugo server --watch --baseURL=http://localhost:1313/ --bind=0.0.0.0 $(ARGS)"
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) -p 1313:1313 $(build_tag) bash -c \
"$(git_safe) && $(ENV) hugo server --watch --baseURL=http://localhost:1313/ --bind=0.0.0.0 $(ARGS)"

site-static: ensure-build-image
-docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) rm -r ./public
Expand Down

0 comments on commit bbc2f1f

Please sign in to comment.