From 3f86b73d5c7c9dbf5f21c01b49889c50f8e1ba11 Mon Sep 17 00:00:00 2001 From: DCCONSTRUCTIONS Date: Sat, 16 May 2026 14:22:44 +0300 Subject: [PATCH] FIX - LOCAL DEV: stabilize Tasker light web root --- .gitignore | 1 + plane-app/docker-compose.local-web-build.yaml | 2 +- plane-app/reload-web-local-light.sh | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d39d5fe..81a1a8c 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ plane-src/apps/admin/.react-router/ plane-src/apps/space/.react-router/ plane-app/archive/ plane-app/backup/ +plane-app/.local-web-root/ diff --git a/plane-app/docker-compose.local-web-build.yaml b/plane-app/docker-compose.local-web-build.yaml index 038c218..02eb7df 100644 --- a/plane-app/docker-compose.local-web-build.yaml +++ b/plane-app/docker-compose.local-web-build.yaml @@ -1,4 +1,4 @@ services: web: volumes: - - ../plane-src/apps/web/build/client:/usr/share/nginx/html:ro + - ./.local-web-root:/usr/share/nginx/html:ro diff --git a/plane-app/reload-web-local-light.sh b/plane-app/reload-web-local-light.sh index e1468a7..dbcb126 100755 --- a/plane-app/reload-web-local-light.sh +++ b/plane-app/reload-web-local-light.sh @@ -4,6 +4,7 @@ set -eu ROOT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)" SOURCE_DIR="$ROOT_DIR/plane-src" APP_DIR="$ROOT_DIR/plane-app" +LOCAL_WEB_ROOT="$APP_DIR/.local-web-root" cd "$SOURCE_DIR" @@ -19,6 +20,11 @@ VITE_NODEDC_LAUNCHER_URL="${VITE_NODEDC_LAUNCHER_URL:-http://launcher.local.node VITE_NODEDC_OIDC_LOGIN_ENABLED="${VITE_NODEDC_OIDC_LOGIN_ENABLED:-1}" \ pnpm --filter web build +mkdir -p "$LOCAL_WEB_ROOT" +find "$LOCAL_WEB_ROOT" -mindepth 1 -maxdepth 1 -exec rm -rf {} + +cp -a "$SOURCE_DIR/apps/web/build/client/." "$LOCAL_WEB_ROOT/" +test -f "$LOCAL_WEB_ROOT/index.html" + cd "$APP_DIR" /usr/local/bin/docker compose \