ClubLedger/run.sh
Claude 8fa3aca85d
Add run.sh to handle venv setup automatically
Creates .venv on first run, installs dependencies, then starts the server.
Subsequent runs skip straight to starting. Avoids externally-managed-environment
errors on Debian/Ubuntu 12+.

https://claude.ai/code/session_01JuRTR5Xjx8emQsyerBgGU7
2026-05-30 11:42:48 +00:00

15 lines
363 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Run ClubLedger creates a virtualenv on first run, then starts the server.
set -e
VENV=".venv"
if [ ! -d "$VENV" ]; then
echo "Creating virtual environment..."
python3 -m venv "$VENV"
echo "Installing dependencies..."
"$VENV/bin/pip" install --quiet -r requirements.txt
echo "Done."
fi
exec "$VENV/bin/python" main.py "$@"