👷 Deploy from CI using SSH
This commit is contained in:
1 parent
a2cfd0ceaf
commit
87e2f2292c
3 files changed
+17
-50
No files matched your search
Executable
+14
@@ -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
|
||||
Reference in new issue
Block a user