deploy.sh: clear legacy packaging leftovers; honest dep rows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user