From b0d3646b9a37681e70fba204d88b54783569f29c Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Sun, 6 Jun 2021 18:31:33 +0200 Subject: [PATCH] re-add deploy.sh --- deploy.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..2820ea3 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set -x +set -e + +python="/srv/venv/acronomy/bin/python" + +manage="sudo -u acronomy $python manage.py" + +git pull + +$manage scss +$manage collectstatic --noinput +$manage migrate + +sudo systemctl reload acronomy.service