Create update script to be run as user
This commit is contained in:
parent
53568e360f
commit
cde6c1d288
9
borgweb/update.sh
Normal file
9
borgweb/update.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user