From 4f69fcedbb62499a94fd36c6c77d061174101816 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Fri, 16 Sep 2022 11:18:30 -0400 Subject: [PATCH] fix(website/Makefile): mount `/../internal/gen` (#2461) --- website/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/website/Makefile b/website/Makefile index 735a8e65aa..9d3bdf176a 100644 --- a/website/Makefile +++ b/website/Makefile @@ -1,5 +1,9 @@ .DEFAULT_GOAL := website +# "developer" | "io" +PREVIEW_MODE?=io +REPO?=boundary + PWD=$$(pwd) DOCKER_IMAGE="hashicorp/dev-portal" DOCKER_IMAGE_LOCAL="dev-portal-local" @@ -10,11 +14,12 @@ DOCKER_RUN_FLAGS=-it \ --volume "$(PWD)/content:/app/content" \ --volume "$(PWD)/public:/app/public" \ --volume "$(PWD)/data:/app/data" \ + --volume "$(PWD)/../internal/gen:/internal/gen" \ --volume "$(PWD)/redirects.js:/app/redirects.js" \ --volume "next-dir:/app/website-preview/.next" \ --volume "$(PWD)/.env:/app/.env" \ - -e "REPO=boundary" \ - -e "PREVIEW_MODE=io" + -e "REPO=$(REPO)" \ + -e "PREVIEW_MODE=$(PREVIEW_MODE)" # Default: run this if working on the website locally to run in watch mode. .PHONY: website