修复关键位

This commit is contained in:
dekun
2026-05-22 10:56:42 +08:00
parent d144cb592a
commit 40f7a1b844
15 changed files with 143 additions and 15 deletions
+6
View File
@@ -7313,6 +7313,12 @@ def _hub_meta_bundle():
try:
import sys
from pathlib import Path
_repo_root = Path(__file__).resolve().parent.parent
if str(_repo_root) not in sys.path:
sys.path.insert(0, str(_repo_root))
from hub_bridge import install_on_app
install_on_app(
+2 -1
View File
@@ -14,6 +14,7 @@
const path = require("path");
const ROOT = __dirname;
const REPO_ROOT = path.join(ROOT, "..");
const PY = path.join(ROOT, ".venv", "bin", "python");
module.exports = {
@@ -27,7 +28,7 @@ module.exports = {
autorestart: true,
watch: false,
max_memory_restart: "800M",
// app.py 从项目根目录 .env 加载(由 .env.example 复制而来,勿提交 Git
env: { PYTHONPATH: REPO_ROOT },
},
],
};