This commit is contained in:
Cristina Cochior 2020-02-14 13:49:14 +01:00
commit 104df53a72
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,9 @@ echo "Spitting out todays date and time ..."
date date
echo "Copying over the doesitsparkjoy.voicegardens.org fixed archive ..." echo "Copying over the doesitsparkjoy.voicegardens.org fixed archive ..."
rm -rf /var/www/doesitsparkjoy.voicegardens.org/voicegardens/archive/*
cp /var/www/doesitsparkjoy.voicegardens.org/voicegardens/fixed-archive/* /var/www/doesitsparkjoy.voicegardens.org/voicegardens/archive/ cp /var/www/doesitsparkjoy.voicegardens.org/voicegardens/fixed-archive/* /var/www/doesitsparkjoy.voicegardens.org/voicegardens/archive/
echo "Copying over the voicegardens.org fixed archive ..." echo "Copying over the voicegardens.org fixed archive ..."
rm -rf /var/www/voicegardens.org/voicegardens/archive/*
cp /var/www/voicegardens.org/voicegardens/fixed-archive/* /var/www/voicegardens.org/voicegardens/archive/ cp /var/www/voicegardens.org/voicegardens/fixed-archive/* /var/www/voicegardens.org/voicegardens/archive/

6
fabfile.py vendored
View File

@ -11,8 +11,7 @@ def doesitsparkjoy(c):
c.run('sudo supervisorctl restart apps:doesitsparkjoy') c.run('sudo supervisorctl restart apps:doesitsparkjoy')
c.run('sudo systemctl restart nginx') c.run('sudo systemctl restart nginx')
c.run('sh bin/clear-archives') c.run('sh bin/clear-archives')
# TODO: enable when it works again c.run('sh bin/copy-fixed-archive')
# c.run('sh bin/copy-fixed-archive')
print('Released <3') print('Released <3')
@task @task
@ -24,8 +23,7 @@ def voicegardens(c):
c.run('sudo supervisorctl restart apps:voicegardens') c.run('sudo supervisorctl restart apps:voicegardens')
c.run('sudo systemctl restart nginx') c.run('sudo systemctl restart nginx')
c.run('sh bin/clear-archives') c.run('sh bin/clear-archives')
# TODO: enable when it works again c.run('sh bin/copy-fixed-archive')
# c.run('sh bin/copy-fixed-archive')
print('Released <3') print('Released <3')
@task @task