Files
notes-qpid-pro/scripts/run.sh
T

15 lines
312 B
Bash
Executable File

#!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"
cd "$DIR"
# Source virtualenv
source venv/bin/activate
# Default port 8002, host 127.0.0.1
HOST="${HOST:-127.0.0.1}"
PORT="${PORT:-8002}"
exec uvicorn app.main:app --host "$HOST" --port "$PORT" --workers 2