heroweb/herowebserver/run.sh
2024-09-14 06:59:42 +03:00

10 lines
250 B
Bash
Executable File

#!/bin/bash
set -e
SERVER_DIR="$(cd "$(dirname "$0")" && pwd)"
if [ -z "$BASE_DIR" ]; then
source ~/code/git.ourworld.tf/freeflowuniverse/heroweb/myenv.sh
fi
pushd $SERVER_DIR
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
popd > /dev/null