From: Magnus Hagander Date: Sat, 13 Feb 2016 11:59:16 +0000 (+0100) Subject: Add simple updating script X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ec1d9deaa33196b94366ade3fdc746a705996bc2;p=pgcommitfest2.git Add simple updating script Intended to be run manually, but to make life easier at least. --- diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..0eb138a --- /dev/null +++ b/update.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e + +# Trivial update script for pgcf +if [ "$(id -u)" == "0" ]; then + echo Do not run as root! + exit 1 +fi + +cd $(dirname $0) + +git pull --rebase + +./python manage.py collectstatic --noinput + +./python manage.py migrate + +echo Done!