From cde6c1d288481270ae30884129f10c297a864753 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Wed, 5 Oct 2022 16:48:11 +0100 Subject: [PATCH] Create update script to be run as user --- borgweb/update.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 borgweb/update.sh diff --git a/borgweb/update.sh b/borgweb/update.sh new file mode 100644 index 0000000..c9499ea --- /dev/null +++ b/borgweb/update.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +cd "${0%/*}" + +source ./venv/bin/activate +python ./manage.py collectstatic --noinput +python ./manage.py compress +python ./manage.py migrate --noinput +deactivate \ No newline at end of file