- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
44 lines
822 B
Markdown
44 lines
822 B
Markdown
# 🚀 Deployment-Anleitung (Ansible-basiert)
|
||
|
||
Dieses Projekt verwendet Ansible zur automatisierten Bereitstellung.
|
||
|
||
---
|
||
|
||
## 🧱 Struktur
|
||
|
||
- `ansible/setup.yml` → Bereitet Zielserver vor (Docker, Git, Benutzer)
|
||
- `ansible/deploy.yml` → Clont Projekt & startet Docker Compose
|
||
|
||
---
|
||
|
||
## 📂 Vorbereitung
|
||
|
||
1. Zielserver (Debian)
|
||
2. SSH-Zugang (z. B. via `~/.ssh/id_rsa`)
|
||
3. Eintrag in `ansible/inventory.ini`:
|
||
|
||
```ini
|
||
[web]
|
||
123.123.123.123 ansible_user=root
|
||
```
|
||
|
||
---
|
||
|
||
## ▶️ Ausführen
|
||
|
||
```bash
|
||
# Setup ausführen (nur einmal)
|
||
ansible-playbook -i ansible/inventory.ini ansible/setup.yml
|
||
|
||
# Projekt deployen (beliebig oft)
|
||
ansible-playbook -i ansible/inventory.ini ansible/deploy.yml
|
||
```
|
||
|
||
---
|
||
|
||
## 🔐 Hinweis
|
||
|
||
- `.env` wird **nicht** automatisch übertragen
|
||
- Serverpfade ggf. per `dest:` in `git:`-Modul anpassen
|
||
|