Browse Source
Add archiving cleaning for staging environment
main
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with
8 additions and
5 deletions
-
fabfile.py
-
makefile
|
|
@ -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') |
|
|
|
|
|
@ -17,5 +17,5 @@ clear-archive: |
|
|
|
doesitsparkjoy: |
|
|
|
@fab -H $(REMOTE_HOST) doesitsparkjoy |
|
|
|
|
|
|
|
voicegardens: |
|
|
|
@fab -H $(REMOTE_HOST) voicegardens |
|
|
|
cleanarchives: |
|
|
|
@fab -H $(REMOTE_HOST) cleanarchives |
|
|
|