FIX - LOCAL DEV: stabilize Tasker light web root
This commit is contained in:
parent
491a2b52c8
commit
3f86b73d5c
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue