unwind/scripts/server

14 lines
203 B
Bash
Executable file

#!/bin/sh -eu
: "${UNWIND_PORT:=8097}"
cd "$RUN_DIR"
[ -z "${DEBUG:-}" ] || set -x
export UNWIND_PORT
exec uvicorn \
--host 0.0.0.0 \
--port "$UNWIND_PORT" \
--factory unwind:create_app