Browse Source

Add archiving cleaning for staging environment

main
decentral1se 2 years ago
parent
commit
1055e69213
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 9
      fabfile.py
  2. 4
      makefile

9
fabfile.py

@ -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')

4
makefile

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

Loading…
Cancel
Save