regluit/deploy/update-regluit

12 lines
328 B
Plaintext
Raw Normal View History

#!/bin/bash
# put this in one of root's crontabs and it'll refresh and restart regluit
cd /opt/regluit
sudo -u ubuntu -c "git pull"
source ENV/bin/activate
django-admin.py syncdb --migrate --settings regluit.settings.prod
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/celeryd restart
2011-11-11 03:41:25 +00:00
touch /opt/regluit/deploy/last-update