diff --git a/entrypoint.sh b/entrypoint.sh index 684f119..e441f99 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -67,6 +67,7 @@ WEBHOOK_PID=$! # Start hugo server in foreground (PID 1 for container) echo "Starting Hugo server, baseURL=$HUGO_BASEURL" +cd "$REPO_DIR" # bind to 0.0.0.0 so it is reachable outside container hugo server --bind 0.0.0.0 --baseURL "${HUGO_BASEURL}" ${HUGO_FLAGS}