feat: deployment setup - nginx, Caddy configs, deploy script, API smoke tests
Dieser Commit ist enthalten in:
Ursprung
3cd865ccbc
Commit
a3cefeef52
4 geänderte Dateien mit 123 neuen und 0 gelöschten Zeilen
25
setup/deploy.sh
Normale Datei
25
setup/deploy.sh
Normale Datei
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
# Deploy edu.senex.de to Pi
|
||||
set -e
|
||||
|
||||
PI_HOST="hafroes@192.168.10.65"
|
||||
PI_PATH="/mnt/nas-services/webapps/sites/edu"
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
LOCAL_EDU="$SCRIPT_DIR/../edu"
|
||||
|
||||
echo "=== Deploying edu.senex.de ==="
|
||||
|
||||
echo "Creating directories on Pi..."
|
||||
ssh $PI_HOST "mkdir -p $PI_PATH/{css,js,api,content/flashcards,content/tutorials,content/cheatsheets}"
|
||||
|
||||
echo "Uploading files..."
|
||||
scp -r "$LOCAL_EDU/index.html" "$PI_HOST:$PI_PATH/"
|
||||
scp -r "$LOCAL_EDU/css/"* "$PI_HOST:$PI_PATH/css/"
|
||||
scp -r "$LOCAL_EDU/js/"* "$PI_HOST:$PI_PATH/js/"
|
||||
scp -r "$LOCAL_EDU/api/"* "$PI_HOST:$PI_PATH/api/"
|
||||
scp -r "$LOCAL_EDU/content/"* "$PI_HOST:$PI_PATH/content/" 2>/dev/null || true
|
||||
|
||||
echo "Restarting PHP-FPM (opcache)..."
|
||||
ssh $PI_HOST "docker restart php-fpm"
|
||||
|
||||
echo "=== Deployed! Visit https://edu.senex.de ==="
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren