feat: 重构项目心跳数据结构并实现相关功能
- 重构Redis心跳数据结构,使用统一的项目列表键 - 新增数据迁移工具和API端点 - 更新前端以使用真实项目数据 - 添加系统部署配置和文档 - 修复代码格式和样式问题
This commit is contained in:
23
deploy/systemd/bls-project-console.service
Normal file
23
deploy/systemd/bls-project-console.service
Normal file
@@ -0,0 +1,23 @@
|
||||
# Copy to: /etc/systemd/system/bls-project-console.service
|
||||
# Then: systemctl daemon-reload && systemctl enable --now bls-project-console
|
||||
|
||||
[Unit]
|
||||
Description=BLS Project Console (Node/Express)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/vol1/1000/Docker/nginx/project/bls/bls_project_console
|
||||
|
||||
# Use repo .env (copy .env.example -> .env)
|
||||
EnvironmentFile=/vol1/1000/Docker/nginx/project/bls/bls_project_console/.env
|
||||
Environment=NODE_ENV=production
|
||||
|
||||
# Node 22 is installed on host. If node path differs, replace /usr/bin/node.
|
||||
ExecStart=/usr/bin/node src/backend/server.js
|
||||
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user