2012-02-02 19:39:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd /opt/regluit
|
2016-09-12 18:30:25 +00:00
|
|
|
find . -name "*.pyc" -delete
|
|
|
|
find . -type d -empty -delete
|
|
|
|
|
2012-02-02 19:39:35 +00:00
|
|
|
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
|
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
|
2012-02-02 19:39:35 +00:00
|
|
|
django-admin.py collectstatic --noinput --settings regluit.settings.prod
|
2016-09-08 02:24:47 +00:00
|
|
|
|
2012-02-02 19:39:35 +00:00
|
|
|
sudo /etc/init.d/apache2 restart
|
2016-06-28 19:05:38 +00:00
|
|
|
django-admin.py celeryd_multi restart w1 --settings=regluit.settings.prod;
|
|
|
|
/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
|