Fabfile Deployment Summary | Generated by AI
Done! Here’s a summary of what was created and deployed:
fabfile.py at project root
Usage:
# Deploy to remote (rsync + pip install)
fab -H root@36.150.116.206:31005 deploy
# Check deployed version and status
fab -H root@36.150.116.206:31005 status
# Run any command on remote
fab -H root@36.150.116.206:31005 shell -- cmd="ls -la /root/ahl"
What it does:
deploy— Rsyncs the local source tree to/root/ahlon the remote, excluding__pycache__,.git,*.png, etc., then runspip install -e .using/opt/venv/bin/pip(the remote’s virtualenv)install— Alias for deploystatus— Shows deployed version, pip package info, and remote file listingshell— Runs any command on the remote via SSH
