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') |
|
|
print('Released <3') |
|
|
|
|
|
|
|
|
@task |
|
|
@task |
|
|
def voicegardens(c): |
|
|
def cleanarchives(c): |
|
|
"""Release voicegardens.org.""" |
|
|
"""Release doesitsparkjoy.voicegardens.org.""" |
|
|
pass # TODO |
|
|
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: |
|
|
doesitsparkjoy: |
|
|
@fab -H $(REMOTE_HOST) doesitsparkjoy |
|
|
@fab -H $(REMOTE_HOST) doesitsparkjoy |
|
|
|
|
|
|
|
|
voicegardens: |
|
|
cleanarchives: |
|
|
@fab -H $(REMOTE_HOST) voicegardens |
|
|
@fab -H $(REMOTE_HOST) cleanarchives |
|
|