This commit is contained in:
eric
2026-03-29 01:34:23 -05:00
parent 8bce529255
commit 784a4468b8
8 changed files with 308 additions and 218 deletions

View File

@@ -3,8 +3,8 @@
* web 使用 scripts/launch.py若缺少 web-console/out 会自动 npm build 再起 uvicorn
*
* 单频道:通常只启一个 youtube.py或 tiktok.py+ web。
* 多频道 Pro每路需要独立 config/youtube.ini + URL_config.ini或独立工作目录
* 请为每路复制一份目录或使用符号链接,再为每个 PM2 app 设置不同的 cwd进程名与控制台 Pro 线路一致(如 youtube2__xxx
* 多频道 Pro同一项目根下按 PM2 名拆分文件config/youtube.<name>.ini 与 config/URL_config.<name>.ini控制台保存时自动创建
* PM2 进程名与控制台线路一致(如 youtube2__ch_xxx,并在 env 中设置 LIVE_PM2_PROCESS_NAME 与同名字符串,供 youtube.py 读取正确 ini
* 音频处理链与 GitLab 分支 ffmpegAudioRMFoode 中 douyin_youtube_ffplay 对齐Linux ARM/x86 编码由 config/hardware.env 与硬件探测辅助。
*/
const path = require("path");
@@ -38,13 +38,13 @@ module.exports = {
// interpreter: py,
// env: { PYTHONUNBUFFERED: "1" },
// },
// —— Pro 第二路示例:把 /opt/live/lane2 换成你独立配置目录(内含 config/youtube.ini、URL_config.ini——
// —— Pro 第二路示例:与 web 控制台「多频道 Pro」线路 PM2 名一致 ——
// {
// name: "youtube2__lane2",
// cwd: "/opt/live/lane2",
// cwd: root,
// script: "youtube.py",
// interpreter: py,
// env: { PYTHONUNBUFFERED: "1" },
// env: { PYTHONUNBUFFERED: "1", LIVE_PM2_PROCESS_NAME: "youtube2__lane2" },
// },
// { name: "obs", cwd: root, script: "bash", args: `-lc ${JSON.stringify(path.join(root, "obs.sh"))}` },
],