Skip to content

Instantly share code, notes, and snippets.

@christianp
Created July 25, 2012 16:06
Show Gist options
  • Save christianp/3176973 to your computer and use it in GitHub Desktop.
Save christianp/3176973 to your computer and use it in GitHub Desktop.
#!/bin/sh
EDITOR_PATH=/srv/www/numbas.mas.ncl.ac.uk80/numbas/
PYTHON=python2.6
echo "Updating Numbas"
cd /srv/numbas/dist
git pull
echo "Updating editor"
cd $EDITOR_PATH
git pull
$PYTHON manage.py syncdb
$PYTHON manage.py collectstatic --noinput
touch web/django.wsgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment