Browse Source

Fix paths once again, add scripts to deploy

main
Luke Murphy 5 years ago
parent
commit
744cc532ea
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 4
      bin/copy-fixed-archive
  2. 4
      fabfile.py

4
bin/copy-fixed-archive

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

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

Loading…
Cancel
Save