2011-11-09 18:22:23 +00:00
|
|
|
#!/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
|