#!/bin/bash
cd /home/docbow/source/
su docbow -c 'git pull'
cd docbow_project/docbow
su docbow -c '/home/docbow/env/bin/pip install -r ../../requirements.txt'
su docbow -c '/home/docbow/env/bin/python ../../docbow-ctl compilemessages'
/etc/init.d/docbow manage syncdb --migrate
/etc/init.d/docbow manage collectstatic --noinput
/etc/init.d/docbow restart
