From e1eaf3df9859bc262d23ee8b3c2e07ad17fbcf4e Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Sun, 20 Feb 2022 00:17:51 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Try=20fixing=20deploy=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/deploy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/deploy b/bin/deploy index 62954c8..4edaa2b 100755 --- a/bin/deploy +++ b/bin/deploy @@ -2,8 +2,8 @@ set -eu PROJECT_PATH=/var/www/neuf.no/bbs -PROCESS_NAME="$PROJECT.neuf.no" - +PROCESS_NAME="bbs.neuf.no" +echo "Deploying bbs to ${PROJECT_PATH}" cd "$PROJECT_PATH" || exit 1 git pull poetry install @@ -11,4 +11,5 @@ umask 022; poetry run python manage.py collectstatic --noinput # Collect static poetry run python manage.py migrate # Run DB migrations # Reload +echo "Reloading supervisor process ${PROCESS_NAME}" sudo /usr/bin/supervisorctl pid "$PROCESS_NAME" | xargs kill -HUP