Commit 8d4de59c authored by zhangying's avatar zhangying

init

parent e278860b
......@@ -21,14 +21,14 @@ install:
# 运行命令
.PHONY: run
run:
@echo "正在启动 Vue3 Vite 应用..."
@echo "正在启动 若依管理系统..."
@RESOURCE_PATH=$(RESOURCE_PATH) $(NPM) run dev > $(LOG_FILE) 2>&1 &
@echo "✅ Vue3 Vite 应用已启动,端口: $(APP_PORT)"
@echo "✅ 若依管理系统已启动,端口: $(APP_PORT)"
# 停止命令
.PHONY: stop
stop:
@echo "正在停止 Vue3 Vite 应用..."
@echo "正在停止 若依管理系统..."
@if command -v lsof >/dev/null 2>&1; then \
echo "使用 lsof 命令停止应用..."; \
lsof -ti:$(APP_PORT) | xargs kill -9 2>/dev/null || echo "没有找到运行在端口 $(APP_PORT) 的进程"; \
......@@ -39,12 +39,12 @@ stop:
echo "❌ 错误:系统中没有找到 lsof 或 ss 命令"; \
exit 1; \
fi
@echo "✅ Vue3 Vite 应用已停止"
@echo "✅ 若依管理系统已停止"
# 构建命令
.PHONY: build
build:
@echo "正在构建 Vue3 Vite 应用..."
@echo "正在构建 若依管理系统..."
@$(NPM) run build
@echo "✅ 构建完成!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment