Initial import: web4beginners editor and deployment setup

This commit is contained in:
2026-03-06 13:49:43 +01:00
commit fd9ea482bf
73 changed files with 4043 additions and 0 deletions

22
stop-offline.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT_DIR"
PID_FILE=".offline-server.pid"
if [[ ! -f "$PID_FILE" ]]; then
echo "No PID file found. Server may already be stopped."
exit 0
fi
PID="$(cat "$PID_FILE")"
if kill -0 "$PID" 2>/dev/null; then
kill "$PID"
echo "Stopped offline server PID $PID."
else
echo "Process $PID is not running."
fi
rm -f "$PID_FILE"