20 lines
399 B
Bash
20 lines
399 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
PROJECT_DIR="${1:-/root/onchain_scout_gate}"
|
|
cd "$PROJECT_DIR"
|
|
|
|
python3 -m venv .venv
|
|
source .venv/bin/activate
|
|
pip install -U pip
|
|
pip install -r requirements.txt
|
|
|
|
if [ ! -f config.yaml ]; then
|
|
cp config.example.yaml config.yaml
|
|
echo "config.yaml created from template, please edit keys/password before start."
|
|
fi
|
|
|
|
mkdir -p runtime
|
|
echo "Bootstrap done."
|
|
|