fix(build): wwwroot symlinks to pkgs/ modules
This commit is contained in:
parent
59bcc3da9f
commit
d2a3f216dc
8
build.sh
8
build.sh
@ -75,16 +75,18 @@ if [ -d "pkgs/pipeline-sdlc/json" ]; then
|
||||
fi
|
||||
|
||||
|
||||
# 8. Link module wwwroot directories
|
||||
for mod in pipeline-sdlc showcase tenant; do
|
||||
# 8. Link module wwwroot directories (symlinks from pkgs/)
|
||||
for mod in pipeline-sdlc showcase tenant pipeline_core pipeline_ops pipeline_dist; do
|
||||
src="pkgs/$mod/wwwroot"
|
||||
dst="wwwroot/$mod"
|
||||
if [ -d "$src" ]; then
|
||||
rm -rf "$dst" 2>/dev/null
|
||||
cp -r "$src" "$dst"
|
||||
ln -sf "../pkgs/$mod/wwwroot" "$dst"
|
||||
echo " wwwroot: $mod linked"
|
||||
fi
|
||||
done
|
||||
# pipeline_task has no separate module
|
||||
mkdir -p wwwroot/pipeline_task
|
||||
|
||||
# 9. Create runtime dirs
|
||||
mkdir -p "$cdir/logs" "$cdir/files" "$cdir/conf"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user