# Deploy ## Vereisten - Docker + Docker Compose op VM106 - PostgreSQL container `foodlinkk_db` - SSH toegang: `aissa@10.4.7.18` ## Eén deploy (aanbevolen) Vanaf de monorepo root: ```bash chmod +x deploy-all.sh ./deploy-all.sh ``` Het script: 1. Rsync't de volledige codebase naar `~/foodlinkk-command-center` op VM106 2. Voert alle SQL migraties uit (`migrations/*.sql`) 3. Bouwt en herstart containers (`tools-api`, `cockpit`, `email-agent`, `browser-agent`) 4. Voert health checks uit 5. **SysOps pusht volledige repo naar Gitea** (`main`, user `sysops`) 6. Genereert Herman briefing (activiteitenlog incl. SysOps) ## Omgevingsvariabelen Kopieer `.env.example` naar `.env` op de host. Gevoelige waarden nooit committen. ## Gitea Repository host: `http://10.4.7.18:3001` ```bash git init git remote add origin http://10.4.7.18:3001/aissa/foodlinkk-command-center.git git add . git commit -m "Platform bundle: ops, packaging, marketing publish" git push -u origin main ``` ## Handmatige migratie (indien nodig) ```bash docker exec -i foodlinkk_db psql -U aissa -d foodlinkk < migrations/016_platform_ops_packaging.sql ``` ## Health checks ```bash curl http://10.4.7.18:8700/health curl -o /dev/null -w "%{http_code}\n" http://10.4.7.18:8600/marketing curl -o /dev/null -w "%{http_code}\n" http://10.4.7.18:8600/ops ```