Added a script to update the production machine

pull/1/head
Ed Summers 2012-02-02 19:39:35 +00:00
parent 5802f7c959
commit abb936fcf6
1 changed files with 11 additions and 0 deletions

11
deploy/update-prod Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
cd /opt/regluit
sudo -u ubuntu /usr/bin/git pull origin production
source ENV/bin/activate
pip install -r requirements.pip
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
touch /opt/regluit/deploy/last-update