#!/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
