feat: update dev command to include lancedb tags and improve help text

This commit is contained in:
mlogclub
2026-06-07 20:01:45 +08:00
parent 73f900c440
commit a9952a821d
+4 -3
View File
@@ -74,7 +74,7 @@ help:
@echo " make release Build release binaries for common platforms" @echo " make release Build release binaries for common platforms"
@echo " make run Build web SPA then run server" @echo " make run Build web SPA then run server"
@echo " make run-go Run server only, ensuring SPA exists" @echo " make run-go Run server only, ensuring SPA exists"
@echo " make dev Run Go server with dev tag and web dev server" @echo " make dev Run Go server with dev+lancedb tags and web dev server"
@echo " make test Run Go tests, ensuring SPA exists" @echo " make test Run Go tests, ensuring SPA exists"
@echo " make check Run Go tests, web typecheck, and web lint" @echo " make check Run Go tests, web typecheck, and web lint"
@echo " make clean Remove Go binaries" @echo " make clean Remove Go binaries"
@@ -118,8 +118,9 @@ run: web-build-spa
run-go: ensure-spa run-go: ensure-spa
@$(GO) run $(MAIN) @$(GO) run $(MAIN)
dev: dev: lancedb-check
@$(GO) run -tags dev $(MAIN) & \ @CGO_ENABLED=1 CGO_CFLAGS="$(LANCEDB_CGO_CFLAGS)" CGO_LDFLAGS="$(LANCEDB_CGO_LDFLAGS)" \
$(GO) run -tags "dev lancedb" $(MAIN) & \
server_pid=$$!; \ server_pid=$$!; \
trap 'kill $$server_pid 2>/dev/null || true' EXIT INT TERM; \ trap 'kill $$server_pid 2>/dev/null || true' EXIT INT TERM; \
echo "Waiting for server at $(DEV_SERVER_URL)..."; \ echo "Waiting for server at $(DEV_SERVER_URL)..."; \