ENGINE: Cutover Pains and Fixes

This commit is contained in:
2025-11-01 04:44:23 -06:00
parent b815592639
commit 02eae72c0d
7 changed files with 1866 additions and 29 deletions

View File

@@ -77,11 +77,11 @@ def _stage_web_interface_assets(logger: Optional[logging.Logger] = None, *, forc
project_root = _project_root()
engine_web_root = project_root / "Engine" / "web-interface"
legacy_source = project_root / "Data" / "Server" / "WebUI"
stage_source = project_root / "Data" / "Engine" / "web-interface"
if not legacy_source.is_dir():
if not stage_source.is_dir():
raise RuntimeError(
f"Engine web interface source missing: {legacy_source}"
f"Engine web interface source missing: {stage_source}"
)
index_path = engine_web_root / "index.html"
@@ -92,14 +92,14 @@ def _stage_web_interface_assets(logger: Optional[logging.Logger] = None, *, forc
if engine_web_root.exists():
shutil.rmtree(engine_web_root)
shutil.copytree(legacy_source, engine_web_root)
shutil.copytree(stage_source, engine_web_root)
if not index_path.is_file():
raise RuntimeError(
f"Engine web interface staging failed; missing {index_path}"
)
logger.info("Engine web interface staged from %s to %s", legacy_source, engine_web_root)
logger.info("Engine web interface staged from %s to %s", stage_source, engine_web_root)
return engine_web_root