feat: 前端搭建-未完成

This commit is contained in:
tbphp committed 2025-06-29 21:59:32 +08:00
1 parent ab95af0bbe
commit 731315144e
62 files changed
+4831 -604

No files matched your search

+9 -2
View File
@@ -44,9 +44,16 @@ build-all: clean
# 运行
.PHONY: run
.PHONY: run
run:
@echo "🚀 启动服务器..."
go run $(MAIN_PATH)
@echo "--- Building frontend... ---"
cd web && npm install && npm run build
@echo "--- Preparing backend... ---"
@rm -rf cmd/gpt-load/dist
@cp -r web/dist cmd/gpt-load/dist
@echo "--- Starting backend... ---"
cd $(MAIN_PATH) && go run .
# 开发模式运行
.PHONY: dev