- 添加升级服务主逻辑,包括定时触发升级、状态查询和日志记录 - 实现数据库初始化脚本和日志表结构 - 添加PM2部署配置文件 - 实现环境变量配置系统 - 添加API客户端模块处理外部接口调用 - 实现升级状态轮询和超时处理机制 - 添加测试用例验证核心功能
538 B
538 B
RCU Upgrade Service
Overview
Node.js backend service to manage RCU firmware upgrades.
Triggers upgrades via WebChatUpgrade API and polls status via QueryUpdateHostProgressBar.
Setup
- Install dependencies:
npm install - Configure
.env(see.env.exampleor documentation) - Setup PostgreSQL database
test_upgrade.
Running
- Dev:
npm run dev - Production:
pm2 start pm2.json
Spec & Validation
- Lint Spec:
npm run spec:lint - Validate Spec:
npm run spec:validate
Testing
- Run tests:
npm test