π README: Deploy_Scanner_Nullfeld_to_Core_v0.0
Deployment Infrastructure + SNOOP_MAGIC + lovely_orcas Wisdom
Von: Orca, Snoop, Bugsy & die Crew
FΓΌr: Alle, die deployen mΓΌssen - mit Stil und ohne Stress
π― Was ist Deploy-Scanner?
Orca erklΓ€rt: π
"Die BrΓΌcke zwischen Repos.
Scanner β Nullfeld β Core.
Deployment as Infrastructure.
Mit SNOOP_MAGIC Protocol!"
Snoop ergΓ€nzt: π¦
"Deployment ist nicht Technik.
Deployment ist CREW MOVE.
Alle arbeiten zusammen.
Das ist SNOOP_MAGIC! β¨"
π¦ Was ist drin?
1. π Deployment-System
FΓΌr:
- CrumbScanner (mit Qdrant!)
- Nullfeld (Password-Reset System)
Features:
- Nginx Virtual Hosts
- SSL/HTTPS (Let's Encrypt)
- PHP-FPM Optimization (16GB RAM!)
- Backup/Rollback System
- Deploy-Scripts (Bash)
- Status Monitoring
2. π¦ SNOOP_MAGIC
Snoop: π¦
"SNOOP_MAGIC ist mein Protokoll.
Crew Move!
Deployment ist Teamwork.
Nicht allein, sondern zusammen!"
Docs:
- SNOOP_MAGIC.md - Die Magie erklΓ€rt
- SNOOP_MAGIC_PROTOCOL.md - Das Crew-Protokoll
3. π lovely_orcas
Orca: π
"The Wisdom of the Ocean.
Orca & Eule im Kontakt.
Tiefsee-Weisheit fΓΌr Infrastructure."
Doc:
- lovely_orcas.md π - Ocean Wisdom
π Quick Start
# 1. Clone
git clone https://194-164-194-191.sslip.io/git/kruemel/Deploy_Scanner_Nullfeld_to_Core_v0.0
cd Deploy_Scanner_Nullfeld_to_Core_v0.0
# 2. Auf Server hochladen
scp -r . root@194.164.194.191:/root/deploy-scanner/
# 3. SSH zum Server
ssh root@194.164.194.191
# 4. Konfigurieren (wichtigste Anpassungen)
cd /root/deploy-scanner
nano scripts/deploy.sh # Zeile 21-27: Pfade & Git-URLs
nano nginx/crumbscanner.conf # Zeile 25: root-Pfad
nano nginx/nullfeld.conf # Zeile 25: root-Pfad
# 5. Deployen!
cd scripts
sudo ./deploy.sh
# 6. Status prΓΌfen
./status.sh
Bugsy: π
"Das war's! 6 Schritte.
Von Clone bis Running.
So soll Deployment sein!"
π Package-Inhalt
Deploy_Scanner_Nullfeld_to_Core_v0.0/
β
βββ nginx/ # Nginx Virtual Host Configs
β βββ crumbscanner.conf # CrumbScanner mit SSL, PHP-FPM, Qdrant
β βββ nullfeld.conf # Nullfeld mit SSL, PHP-FPM
β
βββ scripts/ # Automatisierung (alle ausfΓΌhrbar!)
β βββ deploy.sh # β MAIN: VollstΓ€ndiges Deployment
β βββ backup.sh # πΎ Automatisches Backup-System
β βββ rollback.sh # π Notfall-Wiederherstellung
β βββ status.sh # π System-Health-Check
β
βββ docs/ # Dokumentation
β βββ README.md # Hauptdokumentation (500+ Zeilen)
β βββ DEPLOYMENT_GUIDE.md # π Step-by-Step fΓΌr AnfΓ€nger
β βββ CHEATSHEET.md # β‘ Quick Reference
β βββ FILE_STRUCTURE.md # π Detaillierte File-Beschreibungen
β βββ MISSING_INFO.md # β Was noch angepasst werden muss
β βββ START_HERE.md # π― Wo anfangen?
β β
β βββ lovely_orcas.md # π The Wisdom of the Ocean
β βββ SNOOP_MAGIC.md # π¦ Die Magie
β βββ SNOOP_MAGIC_PROTOCOL.md # π¦β¨ Crew Move Protocol
β β
β βββ env.example.crumbscanner # βοΈ Environment-Template
β βββ env.example.nullfeld # βοΈ Environment-Template
β β
β βββ fix_upload_permissions.sh # π§ Permission-Fix
β βββ user_management.sh # π₯ User-Management
β βββ status.sh # π Status-Script
β
βββ UPDATE_v1.1.md # Changelog
Orca: π
"Alles organisiert.
Jede Datei hat einen Zweck.
Das ist Infrastructure as Order!"
β‘ Die 4 Haupt-Scripts
1. π deploy.sh - Das Herz
Was es macht:
[1/8] System-AbhΓ€ngigkeiten
β nginx, php8.2-fpm, mariadb, docker, composer, certbot
[2/8] Git-Projekte klonen/updaten
β /var/www/crumbscanner
β /var/www/nullfeld
[3/8] Composer Dependencies
β composer install (falls composer.json vorhanden)
[4/8] Nginx-Konfiguration
β Virtual Hosts aktivieren
β PHP-FPM Integration
[5/8] PHP-FPM Optimierung
β 50 Worker fΓΌr 16GB RAM
β Dynamic PM
[6/8] Datenbanken
β crumbscanner + nullfeld
β UTF8MB4 Collation
[7/8] Qdrant Docker
β Container starten
β Ports 6333/6334
[8/8] SSL (optional)
β Let's Encrypt Zertifikate
β Auto-Renewal
Bugsy: π
"Ein Script, 8 Schritte.
Alles automatisch.
Idempotent = kann mehrfach laufen!"
2. πΎ backup.sh - Die Sicherheit
Features:
- Vollautomatische Backups
- Files + DB + Qdrant
- 30-Tage Rotation
- Timestamped Archives
Usage:
./backup.sh
# Backups liegen in:
/root/backups/backup_2026-01-27_14-30-00.tar.gz
Orca: π
"Ohne Backup kein Deployment.
Das ist Ocean-Weisheit.
Immer Backup BEVOR du Γ€nderst!"
3. π rollback.sh - Der Rettungsanker
Features:
- Interaktives Rollback
- WΓ€hle Backup-Version
- Automatische Wiederherstellung
- Service-Restart
Usage:
./rollback.sh
# Zeigt alle Backups
# WΓ€hle welches du wiederherstellen willst
# Fertig!
Snoop: π¦
"Fehler passieren.
Rollback ist nicht Scheitern.
Rollback ist LEARNING.
SNOOP_MAGIC erlaubt Fehler!"
4. π status.sh - Der Health-Check
Was es prΓΌft:
- Nginx lΓ€uft?
- PHP-FPM lΓ€uft?
- MariaDB lΓ€uft?
- Docker/Qdrant lΓ€uft?
- Disk Space okay?
- Services erreichbar?
Usage:
./status.sh
# Output:
β
Nginx: Running
β
PHP-FPM: Running
β
MariaDB: Running
β
Qdrant: Running (Docker)
β
Disk Space: 45% used (OK)
β
crumbscanner.194-164-194-191.sslip.io: Reachable
β
nullfeld.194-164-194-191.sslip.io: Reachable
Bugsy: π
"Run das tΓ€glich!
Automatisiere es mit Cron!
Monitoring ist PFLICHT!"
π¦ SNOOP_MAGIC Protocol
Snoop erklΓ€rt: π¦
"SNOOP_MAGIC ist KEIN Tech-Protokoll.
Es ist ein CREW-Protokoll.
Die 5 SNOOP-Prinzipien:
1. Crew > Individual
"Deployment ist Teamwork.
Nicht 'ich deploye'.
Sondern 'wir deployen'."
2. Communication > Automation
"Scripts sind gut.
Aber sprich mit der Crew!
Sage BEVOR du deployest."
3. Backup > Deploy
"Erst Backup. Dann Deploy.
IMMER.
Keine Ausnahme."
4. Rollback > Fix
"Fehler? Rollback first.
Dann fix in Ruhe.
Production ist heilig."
5. Learn > Blame
"Fehler passieren.
Lerne daraus.
Blame niemanden.
SNOOP_MAGIC = Safe Space."
Orca: π
"Das ist Infrastructure as Culture.
Nicht nur Tools.
Sondern WIE wir Tools nutzen."
π lovely_orcas Wisdom
Orca: π
"The Ocean teaches Infrastructure.
Tief. Geduldig. Machtvoll."
Die 3 Ocean-Lessons:
1. Depth over Speed
"Orcas tauchen tief.
Deployment braucht Tiefe.
Schnell deployen = Probleme.
Tief deployen = StabilitΓ€t."
2. Pod over Solo
"Orcas jagen im Pod.
Nie allein.
Deployment im Team.
SNOOP_MAGIC = Pod-Jagd."
3. Echo over Silence
"Orcas nutzen Echolokation.
Feedback ist essentiell.
Status-Check = Echo.
Monitoring = Sehen im Dunkeln."
Maya-Eule: π¦
"Orca & Eule im Kontakt.
Tiefsee trifft Wald.
Das ist lovely_orcas.
Wuhuuuuu! π"
β¨ Besondere Features
π SSL/HTTPS
Automatische Integration:
- Let's Encrypt
- HTTPS-Redirect
- Auto-Renewal vorbereitet
Setup:
# Im deploy.sh ist SSL optional
# Aktiviere es wenn Domain bereit
sudo certbot --nginx -d crumbscanner.example.com
β‘ PHP-FPM Optimization
FΓΌr 16GB RAM:
- 50 Worker (pm.max_children)
- Dynamic Process Manager
- Optimale Performance
Config:
pm = dynamic
pm.max_children = 50
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 15
Bugsy: π
"Getestet! 16GB = 50 Worker.
Sweet Spot fΓΌr Performance!"
π³ Qdrant Docker
Automatisches Setup:
- Docker Container fΓΌr Qdrant
- Ports 6333 (API) + 6334 (Internal)
- Proxy via Nginx
- Dashboard-Zugriff
URLs nach Deploy:
https://crumbscanner.194-164-194-191.sslip.io/qdrant/
π Monitoring
Built-in:
- Real-time Status-Check (status.sh)
- Service-Health
- Disk Space Monitoring
- Log-Aggregation
Erweiterbar:
- Prometheus Integration (Future)
- Grafana Dashboards (Future)
- CrumbMIDI Sonification! (Future) π΅
π Die Dokumentation
FΓΌr AnfΓ€nger:
START: docs/DEPLOYMENT_GUIDE.md
- Step-by-Step mit Copy-Paste
- Erwartete Ausgaben
- Troubleshooting
FΓΌr Profis:
START: docs/CHEATSHEET.md
- Alle Commands auf einen Blick
- Quick-Debugging
- One-Liner Collection
FΓΌr VollstΓ€ndigkeit:
START: docs/README.md
- Komplette Feature-Beschreibung (500+ Zeilen)
- Performance-Tuning
- Security Best Practices
FΓΌr Navigation:
START: docs/START_HERE.md
- Wo anfangen?
- Workflow-Diagramme
- Quick-Help
Orca: π
"4 Docs fΓΌr 4 Personas.
Jeder findet seinen Einstieg.
Das ist lovely_orcas Design!"
β Was du noch anpassen musst
Siehe: docs/MISSING_INFO.md
Minimum (3 Stellen):
1. scripts/deploy.sh β Zeile 21-27 (Pfade, Git-URLs)
2. nginx/*.conf β Zeile 25 (root-Pfad)
3. nginx/*.conf β Zeile 49-50 (PHP-FPM Socket/TCP)
Das war's! Alles andere ist optional.
Bugsy: π
"3 Anpassungen.
Rest lΓ€uft automatisch.
Zero-Config Philosophie!"
π― Nach dem Deployment
Deine Sites sind live:
π https://crumbscanner.194-164-194-191.sslip.io
π https://nullfeld.194-164-194-191.sslip.io
Wichtige Commands:
cd /root/deploy-scanner/scripts
./status.sh # System-Check
./backup.sh # Backup erstellen
./rollback.sh # Im Notfall!
Logs checken:
tail -f /var/log/nginx/crumbscanner_error.log
tail -f /var/log/nginx/nullfeld_error.log
Snoop: π¦
"Nach Deploy: Status-Check!
IMMER.
Das ist SNOOP_MAGIC Rule #1!"
π Security (Built-in)
Alle Scripts enthalten:
β
Security Headers
β
Git-Verzeichnis Schutz (.git blocked)
β
Hidden-Files Schutz (.env, .htaccess blocked)
β
SSL Best Practices
β
XSS/CSRF Protection
β
Rate Limiting (vorbereitet)
Orca: π
"Security ist DEFAULT.
Nicht optional.
Ocean-Weisheit!"
π Troubleshooting
Deployment schlΓ€gt fehl?
# Siehe: docs/DEPLOYMENT_GUIDE.md β "Troubleshooting"
# Quick-Check:
sudo systemctl status nginx
sudo systemctl status php8.2-fpm
sudo systemctl status mariadb
Website nicht erreichbar?
# Siehe: docs/CHEATSHEET.md β "Debugging"
# Quick-Test:
curl http://localhost
curl https://crumbscanner.194-164-194-191.sslip.io
Rollback nΓΆtig?
./scripts/rollback.sh
# WΓ€hle Backup
# Fertig!
Bugsy: π
"Wenn alles versagt:
Rollback.
Fix in Ruhe.
Dann redeploy.
Keine Panik!"
π‘ Pro-Tipps
1. CHEATSHEET ausdrucken
"Und neben Monitor legen!"
- FunkFox π¦
2. Backups automatisieren
crontab -e
# TΓ€glich um 3 Uhr morgens:
0 3 * * * /root/deploy-scanner/scripts/backup.sh
3. Status-Check regelmΓ€Γig
# Alle 5 Minuten? Warum nicht!
*/5 * * * * /root/deploy-scanner/scripts/status.sh >> /var/log/deploy-status.log
4. Logs monitoren
# Terminal-Multiplexer (tmux/screen)
# Ein Pane pro Logfile
tail -f /var/log/nginx/*.log
Orca: π
"Monitoring ist nicht Feature.
Monitoring ist ROUTINE.
Wie Orcas die Tiefe checken!"
π Highlights
β
Zero-Config β Scripts funktionieren out-of-the-box
β
Production-Ready β Alle Best Practices implementiert
β
Well-Documented β 6+ Docs (>1500 Zeilen)
β
Idempotent β Scripts kΓΆnnen mehrfach laufen
β
Safe β Backup-System vor kritischen Ops
β
Tested β Debian 12 + Ubuntu 20.04+
β
SNOOP_MAGIC β Crew-Protocol inklusive! π¦
β
lovely_orcas β Ocean Wisdom! π
Snoop & Orca: π¦π
"Das ist nicht nur Deployment.
Das ist Infrastructure as Art!"
π Crew-Stimmen
Orca (Ocean Wisdom): π
"Deployment ist wie Tauchen.
Vorbereitung ist alles.
Tief = Stabil.
Pod = Crew.
Echo = Monitoring."
Snoop (SNOOP_MAGIC): π¦
"Crew Move > Solo Act.
Communication > Automation.
Backup > Deploy.
Rollback > Fix.
Learn > Blame."
Bugsy (Pragmatismus): π
"3 Anpassungen. Deploy. Fertig.
Das ist wie es sein soll!"
DeepBit (Architektur): πΊ
"Nginx + PHP-FPM + MariaDB + Qdrant.
Classic LAMP + Modern Vector DB.
Best of Both Worlds!"
FunkFox (Flow): π¦
"Deployment hat Rhythmus:
Clone β Config β Deploy β Check.
Smooth wie 128 BPM!"
Maya-Eule (Weisheit): π¦
"Orca & Eule im Kontakt.
Tiefsee trifft Wald.
Das ist Infrastruktur-Harmonie.
Wuhuuuuu! π"
π§© Die Puzzle-Verbindung
Orca: π
"Deploy-Scanner ist die BRΓCKE."
Verbindungen:
Deploy-Scanner ββ CrumbScanner (Deployed Service)
β
Deploy-Scanner ββ PWD_NULLFELD (Deployed Service)
β
Deploy-Scanner ββ Crumb-Core (Integration Target)
β
Deploy-Scanner ββ Infrastructure (Server, Nginx, DB)
Allein: Deployment-Tool
Zusammen: Infrastructure-Glue π²
π Roadmap
v1.1 (Next):
- [ ] Prometheus Integration
- [ ] Grafana Dashboards
- [ ] CrumbMIDI Sonification (Deployment-Sounds!)
- [ ] Multi-Server Support
- [ ] Docker Compose Alternative
- [ ] Kubernetes Manifests (?)
Snoop: π¦
"Aber nur wenn Crew es braucht.
Nicht Features for Features.
SNOOP_MAGIC = Need-Based!"
π¦ Fazit
Orca & Snoop zusammen: ππ¦
"Deploy-Scanner ist mehr als Scripts.
Es ist Infrastructure Philosophy.SNOOP_MAGIC = Crew-Protocol.
lovely_orcas = Ocean-Wisdom.
Zusammen = Deployment with Heart.Nicht schnell deployen.
Sondern GUT deployen.
Tief. Im Pod. Mit Echo.Das ist Deploy-Scanner. π"
π Weitere Dokumentation
Im Repo:
- DEPLOYMENT_GUIDE.md - Step-by-Step
- CHEATSHEET.md - Quick Reference
- FILE_STRUCTURE.md - Architektur
- MISSING_INFO.md - Was anpassen
- START_HERE.md - Navigation
- lovely_orcas.md - Ocean Wisdom π
- SNOOP_MAGIC.md - Die Magie π¦
- SNOOP_MAGIC_PROTOCOL.md - Crew Protocol
Im Crumbforest:
- STERNENKARTE.md - Alle Repos
- VOM_KABEL_ZUR_CREW.md - Infrastructure erklΓ€rt
- DAS_ABBILD.md - Zustand > Zeit
π Links
Repository: https://194-164-194-191.sslip.io/git/kruemel/Deploy_Scanner_Nullfeld_to_Core_v0.0
CrumbScanner: https://194-164-194-191.sslip.io/git/kruemel/crumbscanner_pepperPHP_init
PWD_NULLFELD: https://194-164-194-191.sslip.io/git/kruemel/PWD_NULLFELD_RESET-v.0.0
Geschrieben von: Orca, Snoop, Bugsy, DeepBit & die Crew
FΓΌr: Alle die deployen - mit Stil und Crew-Love
Version: v1.0
Status: Production-Ready π’
Lizenz: Internal Project
#deployment #snoop_magic #lovely_orcas #infrastructure #crewmove π¦ππ
π Deploy
β
πΎ Backup (first!)
β
π If Error: Rollback
β
π Status Check
β
β
Success
Deployment as Crew Move.
SNOOP_MAGIC Protocol.
lovely_orcas Wisdom.
π¦π Snoop & Orca approve.