diff --git a/README.md b/README.md index 7074c4c..d99c633 100644 --- a/README.md +++ b/README.md @@ -143,66 +143,6 @@ The project runs on a VPS with Docker containers behind Traefik reverse proxy. | `monitor.sh` | Health monitoring & alerts | | `webhook-server.py` | GitLab webhook receiver | -### Deployment Commands - -```bash -# Trigger immediate deploy -ssh b0esche-cloud '/opt/scripts/deploy-now.sh' - -# Check backend logs -ssh b0esche-cloud 'docker logs go-backend -f' - -# Check service status -ssh b0esche-cloud 'docker ps --format "table {{.Names}}\t{{.Status}}"' - -# Health checks -curl -s https://go.b0esche.cloud/health -curl -s https://www.b0esche.cloud | grep -o '.*' -``` - -### Starting Services (Manual) - -```bash -# Start all services in order -ssh b0esche-cloud 'cd /opt/traefik && docker-compose up -d' -ssh b0esche-cloud 'cd /opt/go && docker-compose up -d' -ssh b0esche-cloud 'cd /opt/flutter && docker-compose up -d' -``` - -## Database Migrations - -Migrations are in `go_cloud/migrations/`: - -```bash -cd go_cloud -go run github.com/pressly/goose/v3/cmd/goose@latest postgres "$DATABASE_URL" up -``` - -## Backup & Recovery - -Backups run daily and include: -- PostgreSQL database dumps -- Nextcloud database -- Traefik certificates -- Docker volumes -- Configuration files - -Backups are retained for 30 days. - -```bash -# Manual backup -ssh b0esche-cloud '/opt/scripts/backup.sh' -``` - -## Testing - -```bash -# Backend tests -cd go_cloud && go test ./... - -# Frontend tests -cd b0esche_cloud && flutter test -``` ## Tech Stack