Spaces:
Sleeping
Sleeping
File size: 513 Bytes
21cee38 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/bash
set -euo pipefail
# StateStrike bootstrap script
# Creates local env file and installs pinned dependencies.
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
if [ ! -f .env ]; then
cp .env.example .env
echo "Created .env from .env.example"
fi
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
# Ensure Docker bind-mount file targets exist as files.
touch statestrike.db
touch telemetry.json
echo "StateStrike environment setup complete."
|