ClubLedger/run.sh
Claude e3af023582
Fix run.sh: always run pip install, not only on venv creation
Existing .venv without packages caused ModuleNotFoundError. pip install
is a no-op when everything is already up to date, so always running it
is safe and ensures deps are present.

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

14 lines
325 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 if needed, ensures deps are installed, starts the server.
set -e
VENV=".venv"
if [ ! -d "$VENV" ]; then
echo "Creating virtual environment..."
python3 -m venv "$VENV"
fi
"$VENV/bin/pip" install --quiet -r requirements.txt
exec "$VENV/bin/python" main.py "$@"