💚 Try fixing deploy script
This commit is contained in:
1 parent
b79d9fc9c8
commit
e1eaf3df98
1 file changed
+3
-2
+3
-2
@@ -2,8 +2,8 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
PROJECT_PATH=/var/www/neuf.no/bbs
|
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
|
cd "$PROJECT_PATH" || exit 1
|
||||||
git pull
|
git pull
|
||||||
poetry install
|
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
|
poetry run python manage.py migrate # Run DB migrations
|
||||||
|
|
||||||
# Reload
|
# Reload
|
||||||
|
echo "Reloading supervisor process ${PROCESS_NAME}"
|
||||||
sudo /usr/bin/supervisorctl pid "$PROCESS_NAME" | xargs kill -HUP
|
sudo /usr/bin/supervisorctl pid "$PROCESS_NAME" | xargs kill -HUP
|
||||||
Reference in new issue
Block a user