Files
Shortumation/docker/bin/run.sh
T
ari 616c8c3b4b - fixed test case
- attempting to up the websocket
2022-08-22 15:19:41 -04:00

16 lines
366 B
Bash
Executable File

#!/bin/bash
api_location=${1}
port=${PORT:-8000}
host=${HOST:-0.0.0.0}
host_port="$host:$port"
pushd $api_location
echo "--------------------"
echo "BUILD_VERSION = "$BUILD_VERSION
echo "HOST = $host_port"
echo "HASSIO_WS = $HASSIO_WS"
echo $(python --version)
echo "--------------------"
python -m hypercorn src.app:app -b $host_port --config /app/hypercorn.toml