Fix paths once again, add scripts to deploy

This commit is contained in:
Luke Murphy 2020-02-11 15:17:56 +01:00
parent 26fd9170b3
commit 744cc532ea
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@ echo "Spitting out todays date and time ..."
date
echo "Copying over the doesitsparkjoy.voicegardens.org fixed 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 ..."
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/

4
fabfile.py vendored
View File

@ -10,6 +10,8 @@ def doesitsparkjoy(c):
c.run('git pull origin master')
c.run('sudo supervisorctl restart doesitsparkjoy')
c.run('sudo systemctl restart nginx')
c.run('sh bin/clear-archives')
c.run('sh bin/copy-fixed-archive')
print('Released <3')
@task
@ -20,6 +22,8 @@ def voicegardens(c):
c.run('git pull origin master')
c.run('sudo supervisorctl restart voicegardens')
c.run('sudo systemctl restart nginx')
c.run('sh bin/clear-archives')
c.run('sh bin/copy-fixed-archive')
print('Released <3')
@task