A place to inform on the world wide web https://hbbs.decentral1.se
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
380 B

"""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")