diff --git a/README_RUN_RU.md b/README_RUN_RU.md index fd0a414..3a1d4f9 100644 --- a/README_RUN_RU.md +++ b/README_RUN_RU.md @@ -110,7 +110,11 @@ pnpm turbo run check:types --filter=web --filter='@plane/i18n' --filter='@plane/ ```bash cd /Users/dcconstructions/Downloads/mnt/data/dc_taskmanager/NODEDC_TASKMANAGER/plane-src -docker build -t nodedc/plane-frontend:ru -f apps/web/Dockerfile.web . +docker build \ + --build-arg VITE_BEAM_VIEWER_BASE_URL=http://localhost:8080 \ + --build-arg VITE_BEAM_API_BASE_URL=http://localhost:8080 \ + -t nodedc/plane-frontend:ru \ + -f apps/web/Dockerfile.web . cd /Users/dcconstructions/Downloads/mnt/data/dc_taskmanager/NODEDC_TASKMANAGER ./setup.sh stop ./setup.sh start diff --git a/docs_prod/NODEDC_TASKER_DEPLOY_MODEL.md b/docs_prod/NODEDC_TASKER_DEPLOY_MODEL.md index 2131b67..9da3602 100644 --- a/docs_prod/NODEDC_TASKER_DEPLOY_MODEL.md +++ b/docs_prod/NODEDC_TASKER_DEPLOY_MODEL.md @@ -21,8 +21,11 @@ The same codebase supports local and production-like runs. The deployment mode i Frontend brand and launcher integration: - `VITE_NODEDC_LAUNCHER_URL` points the web/admin bundles to Launcher. +- `VITE_BEAM_VIEWER_BASE_URL` and `VITE_BEAM_API_BASE_URL` point the web bundle to BIM Viewer for issue attachments/iframe. - Production default for NAS builds: `https://hub.nodedc.ru` +- Production BIM default for NAS builds: `https://bim.nodedc.tech` - Local default in source helpers: `http://launcher.local.nodedc` +- Local BIM default in source helpers: `http://localhost:8080` Backend integration: @@ -63,6 +66,8 @@ Local/staging-style rebuild can override integration endpoints: ```sh VITE_NODEDC_LAUNCHER_URL=http://launcher.local.nodedc \ +VITE_BEAM_VIEWER_BASE_URL=http://localhost:8080 \ +VITE_BEAM_API_BASE_URL=http://localhost:8080 \ SMOKE_BASE_URL=http://task.local.nodedc:18080 \ SMOKE_RESOLVE= \ BUILD_BACKEND=0 BUILD_WEB=1 BUILD_ADMIN=0 \ diff --git a/plane-src/rebuild-nas-legacy.sh b/plane-src/rebuild-nas-legacy.sh index 7d84ac2..8f1caf2 100755 --- a/plane-src/rebuild-nas-legacy.sh +++ b/plane-src/rebuild-nas-legacy.sh @@ -29,6 +29,8 @@ PLANE_ADMIN_IMAGE=${PLANE_ADMIN_IMAGE:-nodedc/plane-admin:ru} VITE_NODEDC_LAUNCHER_URL=${VITE_NODEDC_LAUNCHER_URL:-https://hub.nodedc.ru} VITE_NODEDC_OIDC_LOGIN_ENABLED=${VITE_NODEDC_OIDC_LOGIN_ENABLED:-1} +VITE_BEAM_VIEWER_BASE_URL=${VITE_BEAM_VIEWER_BASE_URL:-https://bim.nodedc.tech} +VITE_BEAM_API_BASE_URL=${VITE_BEAM_API_BASE_URL:-$VITE_BEAM_VIEWER_BASE_URL} RUN_SMOKE=${RUN_SMOKE:-1} SMOKE_BASE_URL=${SMOKE_BASE_URL:-https://ops.nodedc.ru} @@ -104,6 +106,8 @@ if [ "$BUILD_WEB" = "1" ]; then $DOCKER_BUILD_NETWORK_ARGS \ --build-arg "VITE_NODEDC_LAUNCHER_URL=$VITE_NODEDC_LAUNCHER_URL" \ --build-arg "VITE_NODEDC_OIDC_LOGIN_ENABLED=$VITE_NODEDC_OIDC_LOGIN_ENABLED" \ + --build-arg "VITE_BEAM_VIEWER_BASE_URL=$VITE_BEAM_VIEWER_BASE_URL" \ + --build-arg "VITE_BEAM_API_BASE_URL=$VITE_BEAM_API_BASE_URL" \ -t "$PLANE_FRONTEND_IMAGE" \ -f apps/web/Dockerfile.web.nas-legacy . RECREATE_SERVICES="$RECREATE_SERVICES web"