mirror of
https://github.com/kbenestad/ClubLedger.git
synced 2026-06-18 09:44:33 +00:00
14 lines
317 B
Bash
14 lines
317 B
Bash
#!/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 -r requirements.txt
|
||
|
||
exec "$VENV/bin/python" main.py "$@"
|