LifeStack / run-server.sh
Soham Banerjee
deploy: pure lifestack with partitioned wisdom pool
77da5ce
raw
history blame contribute delete
327 Bytes
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VENV_PYTHON="${ROOT_DIR}/.venv/bin/python"
if [[ ! -x "${VENV_PYTHON}" ]]; then
echo "error: ${VENV_PYTHON} not found. Run ./setup.sh first." >&2
exit 1
fi
cd "${ROOT_DIR}"
exec "${VENV_PYTHON}" "${ROOT_DIR}/server.py" "$@"