- 重构Redis心跳数据结构,使用统一的项目列表键 - 新增数据迁移工具和API端点 - 更新前端以使用真实项目数据 - 添加系统部署配置和文档 - 修复代码格式和样式问题
24 lines
654 B
Desktop File
24 lines
654 B
Desktop File
# 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
|