The client's hosting (All-Inkl) has no GitHub integration, so the two-branch model - source on main, CI force-pushing the built hifi/ folder to a machine-generated deploy branch for Plesk to pull - doesn't work there. main is now simultaneously the source of truth and the deployable artifact: - hifi/index.html, hifi/assets/, favicon, robots.txt and hifi/api/vendor are committed instead of git-ignored. Secrets (db.php, setup.php, ga-service-account.json) stay ignored as before. - A prebuild script wipes hifi/assets + index.html before every vite build, so the tree always holds exactly the current build - this was the stale-hash-chunk problem that originally justified ignoring the output (emptyOutDir stays false to protect hifi/api). Builds are deterministic: rebuilding without source changes yields zero diffs. - .github/workflows/build-deploy.yml is deleted; nothing writes to the deploy branch anymore. The convention is to run npm run build before committing (DEPLOY.md documents the workflow, the All-Inkl setup via SSH clone/pull with docroot on <checkout>/hifi, and the Plesk test server switch from deploy to main). The remote deploy branch is left in place for now so the Plesk test server keeps working until its Git source is switched to main; it can be deleted afterwards. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
45 lines
1.8 KiB
Text
45 lines
1.8 KiB
Text
# Dieses Repo lebt im XAMPP htdocs-Ordner zusammen mit anderen, projektfremden
|
|
# Verzeichnissen (Standard-XAMPP-Dateien, andere lokale Seiten). Nur die beiden
|
|
# HifiPlanet-Ordner (hifi/ und hifi-src/) sollen versioniert werden.
|
|
/*
|
|
!/hifi/
|
|
!/hifi-src/
|
|
!/.gitignore
|
|
!/.github/
|
|
!/DEPLOY.md
|
|
|
|
# Von NPM regenerierbare Abhängigkeiten. Der Composer-vendor von hifi/api wird
|
|
# dagegen BEWUSST versioniert: das Kunden-Hosting (All-Inkl) hat keine
|
|
# CI-Anbindung, deshalb muss main das komplett deploybare hifi/ enthalten.
|
|
/hifi-src/node_modules/
|
|
|
|
# Der Vite-Build-Output (hifi/index.html + hifi/assets/) wird ebenfalls BEWUSST
|
|
# versioniert - gleicher Grund: main ist der einzige Branch und zugleich das
|
|
# Deploy-Artefakt (siehe DEPLOY.md). Vor jedem Commit lokal "npm run build"
|
|
# ausführen; das prebuild-Script in hifi-src/package.json räumt assets/ vorher
|
|
# leer, damit sich keine veralteten Hash-Chunks ansammeln.
|
|
|
|
# Umgebungsspezifische DB-Zugangsdaten (wird vom Admin-Panel automatisch neu geschrieben,
|
|
# unterscheidet sich zwischen Dev-/Live-Umgebung und gehört daher nicht ins Repo)
|
|
/hifi/api/config/db.php
|
|
|
|
# Einmalpasswort für den Ersteinrichtungs-Assistenten (siehe setup.php.example) -
|
|
# pro Umgebung unterschiedlich und darf nicht öffentlich einsehbar sein
|
|
/hifi/api/config/setup.php
|
|
|
|
# Google-Service-Account-Schlüssel für die Analytics-Data-API-Anbindung im Dashboard
|
|
# (wird vom Admin-Panel automatisch neu geschrieben, enthält einen privaten Schlüssel)
|
|
/hifi/api/config/ga-service-account.json
|
|
|
|
# Claude-Code-Tooling (Skills/lokale Einstellungen) - gehört nicht zum Website-Projekt
|
|
/hifi/.claude/
|
|
/hifi/.agents/
|
|
/hifi/skills-lock.json
|
|
/hifi-src/.claude/
|
|
/hifi-src/.agents/
|
|
/hifi-src/skills-lock.json
|
|
|
|
# Von XAMPP/Editoren erzeugte Laufzeit-/Cache-Dateien
|
|
*.log
|
|
Thumbs.db
|
|
.DS_Store
|