Add real workspace acceptance
This commit is contained in:
@@ -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[@]}"
|
||||
|
||||
Reference in New Issue
Block a user