feat: K线点位标注工具完整实现与Ubuntu PM2部署

纯前端 Canvas 画线、拖拽、导出;Python venv + PM2 静态服务;
含部署脚本与使用/部署文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-05-27 14:20:03 +08:00
parent 59f2471940
commit 62bd58d2c4
10 changed files with 1109 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
/**
* 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",
},
},
],
};