From 8778ee6be78efe0a12cd12b3fa349a3540807d61 Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Wed, 8 Jul 2020 22:07:42 +0200 Subject: [PATCH] deploy script --- deploy.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..f1c9177 --- /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 +$manage migrate + +sudo systemctl reload acronomy.service