19 lines
505 B
Python
19 lines
505 B
Python
"""Deployment with Fabric."""
|
|
|
|
from fabric import task
|
|
|
|
@task
|
|
def doesitsparkjoy(c):
|
|
"""Release doesitsparkjoy.voicegardens.org."""
|
|
print('Releasing doesitsparkjoy.voicegardens.org ...')
|
|
with c.cd('/var/www/doesitsparkjoy.voicegardens.org'):
|
|
c.run('git pull origin master')
|
|
c.run('sudo supervisorctl restart doesitsparkjoy')
|
|
c.run('sudo systemctl restart nginx')
|
|
print('Released <3')
|
|
|
|
@task
|
|
def voicegardens(c):
|
|
"""Release voicegardens.org."""
|
|
pass # TODO
|