feat: 统一配置持久化到 config/,发布包分全新/升级、Docker 改宿主机目录并支持三种部署模式
This commit is contained in:
+2
-2
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user