Add archiving cleaning for staging environment

This commit is contained in:
Luke Murphy 2020-01-07 19:56:12 +01:00
parent 07612e4a1b
commit 1055e69213
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 8 additions and 5 deletions

9
fabfile.py vendored
View File

@ -13,6 +13,9 @@ def doesitsparkjoy(c):
print('Released <3')
@task
def voicegardens(c):
"""Release voicegardens.org."""
pass # TODO
def cleanarchives(c):
"""Release doesitsparkjoy.voicegardens.org."""
print('Removing the doesitsparkjoy.voicegardens.org archives ...')
with c.cd('/var/www/doesitsparkjoy.voicegardens.org'):
c.run('rm -rf ./voicegardens/archive/*')
print('Deleted <3')

View File

@ -17,5 +17,5 @@ clear-archive:
doesitsparkjoy:
@fab -H $(REMOTE_HOST) doesitsparkjoy
voicegardens:
@fab -H $(REMOTE_HOST) voicegardens
cleanarchives:
@fab -H $(REMOTE_HOST) cleanarchives