纳入范围: - backend/ Spring Boot 多模块后端(iot-common/device/rule/data/alarm/auth) - frontend/admin/ Vue3 + Element Plus 管理后台 - Android/ 涂鸦原生 APP (com.xhai.iot) - backend/sql/ Flyway 风格迁移脚本(V2~V21) - docs/ 对接文档与设计文档 排除范围: - 构建产物: node_modules/ target/ build/ dist/ .gradle/ - 签名密钥: *.jks *.keystore (严禁入库) - 本机配置: Android/local.properties - 运行日志: logs/ *.log - AI 协作本地数据 .codebuddy/ 与第三方 demo tuya-demo/ .gitattributes 统一以 LF 存储, Windows 批处理保留 CRLF
39 lines
1.3 KiB
Batchfile
39 lines
1.3 KiB
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
title IoT Backend Services
|
|
|
|
set JAVA_HOME=C:\Program Files\Eclipse Adoptium\jdk-17.0.19.10-hotspot
|
|
set PATH=%JAVA_HOME%\bin;D:\dev\apache-maven-3.9.16\bin;%PATH%
|
|
|
|
echo ============================================
|
|
echo Starting all IoT backend services...
|
|
echo ============================================
|
|
|
|
echo [1/4] Starting iot-device (9081)...
|
|
start "iot-device" cmd /c "cd /d f:\work\iotsaas\backend\iot-device && mvn spring-boot:run > f:\work\iotsaas\logs\device.log 2>&1"
|
|
|
|
echo [2/4] Starting iot-data (9082)...
|
|
start "iot-data" cmd /c "cd /d f:\work\iotsaas\backend\iot-data && mvn spring-boot:run > f:\work\iotsaas\logs\data.log 2>&1"
|
|
|
|
echo [3/4] Starting iot-rule (9083)...
|
|
start "iot-rule" cmd /c "cd /d f:\work\iotsaas\backend\iot-rule && mvn spring-boot:run > f:\work\iotsaas\logs\rule.log 2>&1"
|
|
|
|
echo [4/4] Starting iot-alarm (9084)...
|
|
start "iot-alarm" cmd /c "cd /d f:\work\iotsaas\backend\iot-alarm && mvn spring-boot:run > f:\work\iotsaas\logs\alarm.log 2>&1"
|
|
|
|
echo.
|
|
echo All services starting in background...
|
|
echo Log files: f:\work\iotsaas\logs\
|
|
echo.
|
|
echo Waiting for services to initialize (60s)...
|
|
ping -n 60 127.0.0.1 >nul
|
|
|
|
echo.
|
|
echo === Port Status ===
|
|
netstat -an | findstr ":9081 :9082 :9083 :9084" | findstr "LISTENING"
|
|
echo.
|
|
echo === Java Processes ===
|
|
tasklist | findstr java
|
|
echo.
|
|
pause
|