diff --git a/CLAUDE.md b/CLAUDE.md index 15f3593..3e22d6e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,12 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Repository Purpose -This is a documentation repository for a homelab infrastructure. It contains technical documentation for servers, services, and network configuration - no application code. +This repository holds the **Gameserver Monitor (GSM)** web application together with the homelab documentation: +- `gsm-backend/` — Node.js + Express API (the GSM server) +- `gsm-frontend/` — React + Vite + TailwindCSS frontend +- `docs/` — technical documentation for the homelab servers, services, and network configuration + +The deployed app runs at `/opt/gameserver-monitor/` on the monitor LXC (192.168.2.30). ## Infrastructure Overview @@ -69,12 +74,14 @@ ssh root@192.168.2.30 'curl -X POST http://localhost:3000/api/servers/discord/in ## Deployment -**WICHTIG: NIEMALS per SCP deployen!** Alle Änderungen am GSM-Code müssen: -1. Lokal committed werden -2. Auf GitHub gepusht werden -3. Das CI/CD-System deployt automatisch auf den Server +Deployt wird über **Gitea Actions** (`.gitea/workflows/deploy.yml`); Remote ist `origin` = `https://git.zeasy.dev/ZeasyAlex/GSM.git`. -Kein manuelles Kopieren von Dateien per SCP, rsync oder ähnlichem! +**WICHTIG: NIEMALS manuell per SCP/rsync deployen!** Alle Änderungen am GSM-Code müssen: +1. Lokal committed werden +2. Auf den `main`-Branch (Gitea-Remote `origin`) gepusht werden +3. Die Pipeline baut das Frontend (`npm run build`) und deployt Backend + `dist/` automatisch auf den Monitor (192.168.2.30), danach `pm2 restart gsm-backend` + +Der Deploy triggert nur bei Änderungen unter `gsm-backend/**` oder `gsm-frontend/**`. Das Kopieren auf den Server übernimmt ausschließlich die Pipeline (per `scp-action`) — kein manuelles SCP/rsync. ## Language Note