2012-02-02 19:39:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd /opt/regluit
|
|
|
|
sudo -u ubuntu /usr/bin/git pull origin production
|
|
|
|
source ENV/bin/activate
|
2014-10-16 22:18:06 +00:00
|
|
|
pip install --upgrade -r requirements_versioned.pip
|
2012-02-02 19:39:35 +00:00
|
|
|
django-admin.py syncdb --migrate --settings regluit.settings.prod
|
|
|
|
django-admin.py collectstatic --noinput --settings regluit.settings.prod
|
|
|
|
sudo /etc/init.d/apache2 restart
|
|
|
|
sudo /etc/init.d/celeryd restart
|
2012-04-05 22:07:27 +00:00
|
|
|
sudo /etc/init.d/celerybeat restart
|
2012-04-19 02:05:40 +00:00
|
|
|
chmod +x deploy/emit_notices.sh
|
2012-04-19 01:32:13 +00:00
|
|
|
crontab deploy/crontab_prod.txt
|
2012-02-02 19:39:35 +00:00
|
|
|
touch /opt/regluit/deploy/last-update
|