This commit is contained in:
Bingxi Zhao (Frank)
2026-04-23 19:29:16 +08:00
parent 6a99ba721c
commit 77f29cbcc7
348 changed files with 9325 additions and 4928 deletions

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""DeepTutor Web Launcher — starts backend + frontend from the active .env."""
from __future__ import annotations
import os
@@ -18,6 +19,7 @@ if str(PROJECT_ROOT) not in sys.path:
def _load_runtime_deps():
from _cli_kit import accent, banner, bold, dim, log_error, log_info, log_success, warn
from deeptutor.services.config import get_env_store
return accent, banner, bold, dim, log_error, log_info, log_success, warn, get_env_store
@@ -32,6 +34,7 @@ accent, banner, bold, dim, log_error, log_info, log_success, warn, get_env_store
# Process management (unchanged logic)
# ---------------------------------------------------------------------------
def _stream_output(prefix: str, process: subprocess.Popen[str]) -> None:
assert process.stdout is not None
for line in process.stdout:
@@ -91,6 +94,7 @@ def _spawn(
# Entry point
# ---------------------------------------------------------------------------
def main() -> None:
summary = get_env_store().as_summary()
backend_port = summary.backend_port