first commit
This commit is contained in:
12
install.sh
Executable file
12
install.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
cp -n .env.example .env || true
|
||||
mkdir -p data
|
||||
chmod 755 data
|
||||
./scripts/download_geoip.sh data/GeoLite2-City.mmdb
|
||||
python -c "from pytorrent.db import init_db; init_db(); print(\"SQLite initialized\")"
|
||||
echo "Run: . venv/bin/activate && python app.py"
|
||||
Reference in New Issue
Block a user