feat: 统一配置持久化到 config/,发布包分全新/升级、Docker 改宿主机目录并支持三种部署模式

This commit is contained in:
Nixevol
2026-07-09 10:56:22 +08:00
parent ce4b9e0089
commit 3d4493a314
9 changed files with 275 additions and 166 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ import threading
import time
from pathlib import Path
INSTALL_DEV_RUNTIME_DIR = Path(__file__).resolve().parent.parent / "apps/api/runtime/install-dev"
INSTALL_DEV_RUNTIME_DIR = Path(__file__).resolve().parent.parent / "apps/api/config-dev"
from _lib import (
build_env,
@@ -57,7 +57,7 @@ def main() -> None:
env = build_env(cfg)
if install_mode:
env["ARTVERIS_INSTALL_MODE"] = "1"
env["ARTVERIS_RUNTIME_DIR"] = str(INSTALL_DEV_RUNTIME_DIR).replace("\\", "/")
env["ARTVERIS_CONFIG_DIR"] = str(INSTALL_DEV_RUNTIME_DIR).replace("\\", "/")
env["INSTALL_PREFILL_SECRETS"] = "1"
env["INSTALL_MYSQL_HOST"] = local_host(db["host"])
env["INSTALL_MYSQL_PORT"] = str(db["port"])