#!/bin/bash # Auf dem Debian-Server ausführen (einmalig oder nach Updates). # Voraussetzung: Node.js 20+, Git, Zugriff auf git.pauker.at set -euo pipefail APP=/web/jassen REPO=https://git.pauker.at/Stefan/jassen.git if [ ! -d "$APP/.git" ]; then sudo mkdir -p /web sudo git clone "$REPO" "$APP" sudo chown -R "$USER:$USER" "$APP" else cd "$APP" git pull --ff-only fi cd "$APP" npm ci npm run build echo "Build fertig: $APP/dist" echo "Danach VHost aktivieren (siehe deploy/) und DNS auf jassen.pauker.at setzen."