# Repo anlegen, pushen, deployen — Runbook > Diese Schritte laufen **auf deinem Mac** (dort hat der Ordner normale Rechte und dein > gitea-Token sitzt). Aus der Cowork-Sandbox ging das nicht: der gemountete Ordner lässt > Git keine Objekte schreiben, und ein Push bräuchte dein Token. ## 1. Git-Repo lokal sauber aufsetzen ```bash cd ~/Coding/TGA-Shop-Projekt/tga-shop # Kaputtes .git aus der Sandbox entfernen + frisch initialisieren rm -rf .git git init -b main # Optionalen Duplikat-Bildordner löschen (entstand beim Mockup-Copy, ist gitignored) rm -rf public/product-images/product-images git add -A git commit -m "Astro-Storefront: Mockup-Port (16 Seiten, datengetriebene Produkte)" ``` ## 2. Repo in gitea anlegen `git.heidrich-digital.de` → **New Repository** - Owner: `till` - Name: `tga-shop` - Sichtbarkeit: **Private** (wie deine anderen Repos) - **Nicht** mit README/.gitignore initialisieren (haben wir schon) ## 3. Remote + Push ```bash git remote add origin https://git.heidrich-digital.de/till/tga-shop.git git push -u origin main # Beim Push: Benutzer = till, Passwort = dein gitea-Access-Token ``` ## 4. Lokal testen (optional, vor Deploy) ```bash npm install npm run dev # http://localhost:4321 (Passwort-Gate: Hoyaaa) npm run build # muss grün durchlaufen (16 Seiten) ``` ## 5. Coolify-Deployment Sobald das Repo auf gitea liegt: **sag mir Bescheid** — dann lege ich die Coolify-App über den Coolify-MCP an (Static-Site-Build aus diesem Repo, Branch `main`, Build-Command `npm run build`, Output `dist/`) und hänge sie an `git.heidrich-digital.de`. Domain `tgasolutions-shop.de` (DNS bei all-inkl) zeigen wir am Schluss per A-Record auf den Server — und vor Go-live: - **Passwort-Gate** in `public/shop.js` entfernen (Konstante `PASS_WORD`). - Server auf 16 GB rescalen (wenn Medusa dazukommt).