first commit
This commit is contained in:
21
scripts/dev_backend.sh
Executable file
21
scripts/dev_backend.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
BACKEND_DIR="$ROOT_DIR/backend"
|
||||
PYTHON_BIN="${PYTHON_BIN:-python3.14}"
|
||||
|
||||
if ! command -v "$PYTHON_BIN" >/dev/null 2>&1; then
|
||||
PYTHON_BIN="${PYTHON_FALLBACK_BIN:-python3}"
|
||||
fi
|
||||
|
||||
cd "$BACKEND_DIR"
|
||||
|
||||
if [ ! -d ".venv" ]; then
|
||||
"$PYTHON_BIN" -m venv .venv
|
||||
fi
|
||||
|
||||
source .venv/bin/activate
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt
|
||||
python run.py
|
||||
Reference in New Issue
Block a user