👷 Deploy from CI using SSH

This commit is contained in:
Nikolai R Kristiansen committed 2022-02-05 21:10:14 +01:00
1 parent a2cfd0ceaf
commit 87e2f2292c
3 files changed
+17 -50

No files matched your search

Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
set -eu
PROJECT_PATH=/var/www/neuf.no/bbs
PROCESS_NAME="$PROJECT.neuf.no"
cd "$PROJECT_PATH" || exit 1
git pull
poetry install
umask 022; poetry run python manage.py collectstatic --noinput # Collect static
poetry run python manage.py migrate # Run DB migrations
# Reload
sudo /usr/bin/supervisorctl pid "$PROCESS_NAME" | xargs kill -HUP