Browse Source

Fix supervisorctl invocations

main
Luke Murphy 5 years ago
parent
commit
e8b539da0d
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 4
      fabfile.py

4
fabfile.py

@ -8,7 +8,7 @@ def doesitsparkjoy(c):
print('Releasing doesitsparkjoy.voicegardens.org ...') print('Releasing doesitsparkjoy.voicegardens.org ...')
with c.cd('/var/www/doesitsparkjoy.voicegardens.org'): with c.cd('/var/www/doesitsparkjoy.voicegardens.org'):
c.run('git pull origin master') c.run('git pull origin master')
c.run('sudo supervisorctl restart 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')
c.run('sh bin/copy-fixed-archive') c.run('sh bin/copy-fixed-archive')
@ -20,7 +20,7 @@ def voicegardens(c):
print('Releasing voicegardens.org ...') print('Releasing voicegardens.org ...')
with c.cd('/var/www/voicegardens.org'): with c.cd('/var/www/voicegardens.org'):
c.run('git pull origin master') c.run('git pull origin master')
c.run('sudo supervisorctl restart 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')
c.run('sh bin/copy-fixed-archive') c.run('sh bin/copy-fixed-archive')

Loading…
Cancel
Save