Ver código fonte

add wipe.sh: source .venv + .env, clear all but feed_state

Lukas Goldschmidt 1 semana atrás
pai
commit
0d116bc74d
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      wipe.sh

+ 7 - 0
wipe.sh

@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+source "$SCRIPT_DIR/.venv/bin/activate"
+export $(grep -v '^#' "$SCRIPT_DIR/.env" | xargs)
+python3 "$SCRIPT_DIR/scripts/clear_all_but_feeds.py"