2020-04-04 18:55:53 +02:00
|
|
|
"""Deployment with Fabric."""
|
|
|
|
|
|
|
|
from fabric import task
|
|
|
|
|
|
|
|
|
|
|
|
@task
|
|
|
|
def hbbs(c):
|
|
|
|
"""Release hbbs.decentral1.se."""
|
2020-04-04 19:35:02 +02:00
|
|
|
with c.cd("/var/www/hbbs"):
|
2020-04-04 19:34:22 +02:00
|
|
|
c.run("sudo -su www-data git pull origin master")
|
2020-04-04 20:45:54 +02:00
|
|
|
c.run("sudo -su www-data .venv/bin/pip install -r requirements.txt")
|
2020-04-04 18:55:53 +02:00
|
|
|
c.run("sudo supervisorctl restart apps:hbbs")
|
|
|
|
c.run("sudo systemctl reload nginx")
|