fix: .gitignore module symlinks + build.sh rm-ln pattern

This commit is contained in:
yumoqing 2026-07-24 13:41:32 +08:00
parent e3d9f87694
commit 414e596254
2 changed files with 8 additions and 2 deletions

5
.gitignore vendored
View File

@ -9,6 +9,11 @@ __pycache__/
# Build artifacts
wwwroot/bricks/
wwwroot/rbac/
wwwroot/knowledge_bases_list/
wwwroot/engine_configs_list/
wwwroot/subscriptions_list/
wwwroot/documents_list/
mysql.ddl.sql
models/mysql.ddl.sql

View File

@ -45,10 +45,11 @@ cd $cdir
# Symlink bricks + module wwwroots
ln -sf ../pkgs/bricks/dist wwwroot/bricks 2>/dev/null || true
ln -sf ../pkgs/rbac/wwwroot wwwroot/rbac 2>/dev/null || true
# Symlink rag module pages into wwwroot
# Symlink rag module pages into wwwroot (git ignores these)
for d in pkgs/rag/wwwroot/*/; do
name=$(basename "$d")
ln -sf ../../pkgs/rag/wwwroot/$name wwwroot/$name 2>/dev/null || true
rm -rf wwwroot/$name 2>/dev/null
ln -sf ../../pkgs/rag/wwwroot/$name wwwroot/$name
done
# Generate DDL from rag module models