"""Deployment with Fabric.""" from fabric import task @task def hbbs(c): """Release hbbs.decentral1.se.""" with c.cd("/var/www/hbbs"): c.run("sudo -su www-data git pull origin master") c.run("sudo -su www-data .venv/bin/pip install -r requirements.txt") c.run("sudo supervisorctl restart apps:hbbs") c.run("sudo systemctl reload nginx")