regluit/deploy/update-prod

20 lines
680 B
Plaintext
Raw Normal View History

#!/bin/bash
cd /opt/regluit
find . -name "*.pyc" -delete
find . -type d -empty -delete
sudo -u ubuntu /usr/bin/git pull origin production
source ENV/bin/activate
pip install --upgrade -r requirements_versioned.pip
2016-09-08 02:24:47 +00:00
#django-admin.py syncdb --migrate --settings regluit.settings.prod
django-admin.py migrate --fake-initial --noinput --settings regluit.settings.prod
django-admin.py collectstatic --noinput --settings regluit.settings.prod
2016-09-08 02:24:47 +00:00
sudo /etc/init.d/apache2 restart
django-admin.py celeryd_multi restart w1 --settings=regluit.settings.prod;
/etc/init.d/celerybeat restart
chmod +x deploy/emit_notices.sh
crontab deploy/crontab_prod.txt
touch /opt/regluit/deploy/last-update