updated expressjs project

This commit is contained in:
Ludwig Lehnert
2026-01-12 16:52:18 +01:00
parent 175c586465
commit f4c09a259c
3 changed files with 90 additions and 147 deletions

18
deploy.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if docker compose ps -q >/dev/null 2>&1; then
echo "Stopping running services..."
docker compose down
fi
echo "Pulling latest changes..."
git pull
echo "Rebuilding and starting services..."
docker compose up -d --build --force-recreate
echo "Deploy complete."