deploy.sh: clear legacy packaging leftovers; honest dep rows

This commit is contained in:
Oleksandr Kozachuk
2026-07-13 15:17:19 +02:00
parent 8a19c35353
commit 1d813f46e2
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -29,6 +29,9 @@ echo "== deploy $TAG -> $HOST (service $SERVICE, config $CONFIG) =="
# Code push: tag tree over ~/fjerkroa_bot; untracked config/state survives (DEP-01)
git archive "$TAG" | ssh "$HOST" 'mkdir -p ~/fjerkroa_bot && tar -x -C ~/fjerkroa_bot'
# In-place extraction does not delete files removed from the tree —
# clear known legacy packaging leftovers (they break the pip build)
ssh "$HOST" 'rm -f ~/fjerkroa_bot/setup.py ~/fjerkroa_bot/requirements.txt ~/fjerkroa_bot/pytest.ini'
ssh "$HOST" "set -e
[ -x ~/venv-bot/bin/python ] || python3.11 -m venv ~/venv-bot