✨ Modernize bit bit
- bumps - poetry - linting
This commit is contained in:
1 parent
3b9a43fc7a
commit
b12413ed67
31 files changed
+1409
-331
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
export DJANGO_SETTINGS_MODULE=dusken.settings.prod
|
||||
PROJECT_PATH=/var/www/neuf.no/django-postfix-dovecot-api
|
||||
PROCESS_NAME="mxapi.neuf.no"
|
||||
|
||||
echo "Deploying mxapi to ${PROJECT_PATH}"
|
||||
cd "$PROJECT_PATH" || exit 1
|
||||
git pull
|
||||
|
||||
poetry install
|
||||
umask 022; poetry run python manage.py collectstatic --noinput -c # Collect static
|
||||
poetry run python manage.py migrate # Run DB migrations
|
||||
|
||||
# Reload backend
|
||||
echo "Reloading supervisor process ${PROCESS_NAME}"
|
||||
sudo /usr/bin/supervisorctl pid "$PROCESS_NAME" | xargs kill -HUP
|
||||
Reference in new issue
Block a user