Add real workspace acceptance

This commit is contained in:
2026-06-30 17:33:15 +08:00
parent 4eb9452760
commit 53b81dd04d
11 changed files with 418 additions and 18 deletions

View File

@@ -12,6 +12,14 @@ fi
BACKEND_ENV="${SEG_BACKEND_CONDA_ENV:-seg_smp}"
HOST="${SEG_BACKEND_HOST:-0.0.0.0}"
PORT="${SEG_BACKEND_PORT:-8010}"
RELOAD="${SEG_BACKEND_RELOAD:-1}"
cd "${ROOT_DIR}"
exec conda run -n "${BACKEND_ENV}" uvicorn app.main:app --app-dir backend --host "${HOST}" --port "${PORT}" --reload
args=(uvicorn app.main:app --app-dir backend --host "${HOST}" --port "${PORT}")
case "${RELOAD,,}" in
1|true|yes|on)
args+=(--reload)
;;
esac
exec conda run -n "${BACKEND_ENV}" "${args[@]}"