Files
chart-label-tool/deploy/ecosystem.config.cjs
T
dekun 62bd58d2c4 feat: K线点位标注工具完整实现与Ubuntu PM2部署
纯前端 Canvas 画线、拖拽、导出;Python venv + PM2 静态服务;
含部署脚本与使用/部署文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 14:20:03 +08:00

22 lines
545 B
JavaScript

/**
* PM2 进程配置
* 使用 Python 虚拟环境中的 http.server 提供静态文件服务
*/
module.exports = {
apps: [
{
name: "chart-label-tool",
cwd: "/opt/chart-label-tool",
script: "/opt/chart-label-tool/venv/bin/python",
args: "-m http.server 8080 --bind 0.0.0.0 --directory /opt/chart-label-tool/public",
interpreter: "none",
autorestart: true,
watch: false,
max_memory_restart: "128M",
env: {
PYTHONUNBUFFERED: "1",
},
},
],
};