🔧 Build frontend on deploy
This commit is contained in:
1 parent
f4749e6a6e
commit
53ef262ba4
3 files changed
+14
-1
No files matched your search
+6
-1
@@ -6,10 +6,15 @@ PROCESS_NAME="bbs.neuf.no"
|
||||
echo "Deploying bbs to ${PROJECT_PATH}"
|
||||
cd "$PROJECT_PATH" || exit 1
|
||||
git pull
|
||||
|
||||
# Backend
|
||||
poetry install
|
||||
umask 022; poetry run python manage.py collectstatic --noinput # Collect static
|
||||
poetry run python manage.py migrate # Run DB migrations
|
||||
|
||||
# Reload
|
||||
# Frontend
|
||||
bin/build-frontend
|
||||
|
||||
# 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