Browse Source

Fix deploy paths

master
Luke Murphy 4 years ago
parent
commit
a196e39d4e
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      fabfile.py
  2. 2
      makefile

2
fabfile.py

@ -6,7 +6,7 @@ from fabric import task
@task @task
def hbbs(c): def hbbs(c):
"""Release hbbs.decentral1.se.""" """Release hbbs.decentral1.se."""
with c.cd("/var/www/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 git pull origin master")
c.run("sudo supervisorctl restart apps:hbbs") c.run("sudo supervisorctl restart apps:hbbs")
c.run("sudo systemctl reload nginx") c.run("sudo systemctl reload nginx")

2
makefile

@ -9,4 +9,4 @@ serve:
.PHONY: hbbs .PHONY: hbbs
hbbs: hbbs:
@fab -H $(REMOTE_HOST) doesitsparkjoy @fab -H $(REMOTE_HOST) hbbs

Loading…
Cancel
Save