Create update script to be run as user

This commit is contained in:
George Lacey 2022-10-05 16:48:11 +01:00
parent 53568e360f
commit cde6c1d288

9
borgweb/update.sh Normal file
View File

@ -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