From abb936fcf61c05c3c1a76455717986b21add0441 Mon Sep 17 00:00:00 2001 From: Ed Summers Date: Thu, 2 Feb 2012 19:39:35 +0000 Subject: [PATCH] Added a script to update the production machine --- deploy/update-prod | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 deploy/update-prod diff --git a/deploy/update-prod b/deploy/update-prod new file mode 100755 index 00000000..c480a047 --- /dev/null +++ b/deploy/update-prod @@ -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