@@ -25,7 +25,7 @@ AMORO_DIST_TAR := $(CURDIR)/dist/target/apache-amoro-0.9-SNAPSHOT-bin.tar.gz
2525AMORO_RUNTIME_HOME := $(CURDIR ) /dist/target/amoro-0.9-SNAPSHOT
2626AMORO_BIN_HOME := $(CURDIR ) /dist/src/main/amoro-bin
2727
28- .PHONY : setup-fusion stop-fusion restart-fusion debug-fusion teardown logs status pods shell alias help debug-local stop-local start-deps stop-deps ams-debug ams-start ams-dist prepare-optimizer-lib prepare-debug-runtime setup-debug-mode teardown-debug-mode
28+ .PHONY : setup-fusion stop-fusion restart-fusion debug-fusion teardown logs status pods shell alias help debug-local stop-local start-deps stop-deps ams-debug ams-start ams-dist prepare-optimizer-lib prepare-debug-runtime setup-debug-mode teardown-debug-mode sync-frontend
2929
3030# Default target
3131.DEFAULT_GOAL := help
4848 @echo " make teardown-debug-mode One-command debug teardown (stop deps + cleanup)"
4949 @echo " make prepare-debug-runtime Build+install all modules to ~/.m2, then sync optimizer lib"
5050 @echo " make prepare-optimizer-lib Extract dist tar and sync only lib/ to dist/src/main/amoro-bin"
51+ @echo " make sync-frontend Sync built frontend assets to target/ (fixes blank UI without rebuild)"
5152 @echo " make teardown Remove everything (Kind cluster + services + volumes)"
5253 @echo " make logs View Fusion logs"
5354 @echo " make status Show cluster and service status"
@@ -131,6 +132,18 @@ prepare-optimizer-lib:
131132 @cp -R " $( AMORO_RUNTIME_HOME) /lib" " $( AMORO_BIN_HOME) /lib"
132133 @echo " Synced optimizer libs to: $( AMORO_BIN_HOME) /lib"
133134
135+ sync-frontend :
136+ @echo " Syncing frontend assets from src/main/resources/static → target/classes/static ..."
137+ @SRC=amoro-web/src/main/resources/static; \
138+ DST=amoro-web/target/classes/static; \
139+ if [ ! -d " $$ SRC" ]; then \
140+ echo " ERROR: $$ SRC not found. Run 'pnpm build' inside amoro-web/ first." ; \
141+ exit 1; \
142+ fi ; \
143+ mkdir -p " $$ DST" ; \
144+ cp -r " $$ SRC" /. " $$ DST" /
145+ @echo " Done. Refresh http://localhost:1630 in your browser."
146+
134147teardown :
135148 @echo " Removing Kind clusters..."
136149 @kind delete cluster --name $(KIND_CLUSTER ) 2> /dev/null
0 commit comments