fix: use lifespan context manager instead of deprecated on_event for startup
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 2m36s
Run Tests / Backend Tests (push) Failing after 1m3s
Run Tests / Frontend Tests (push) Failing after 22m22s
Run Tests / Test Summary (push) Failing after 16s

This commit is contained in:
Gan, Jimmy
2026-04-02 02:04:59 +08:00
parent 1663535beb
commit 949838c5f2
2 changed files with 36 additions and 22 deletions
+2 -1
View File
@@ -55,9 +55,10 @@ def build_host_command(host_config: dict) -> str | None:
quoted_container = shlex.quote(container)
quoted_session = shlex.quote(session_name)
quoted_marker = shlex.quote(PERSISTENCE_STATUS_PREFIX)
# Use login shell to ensure env vars are loaded from .bashrc
attach_cmd = (
f"{docker_bin} exec -it {quoted_container} "
f"tmux new-session -A -s {quoted_session}"
f"bash -l -c 'cd /repos/nas-tools && tmux new-session -A -s {quoted_session}'"
)
script = " ".join([