feat: K线点位标注工具完整实现与Ubuntu PM2部署
纯前端 Canvas 画线、拖拽、导出;Python venv + PM2 静态服务; 含部署脚本与使用/部署文档。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user