Deploy VPS
Doel
Productie beschikbaar voor web, Capacitor en admin.
Voor wie
DevOps met server toegang.
Waar in de app
Productie URL https://routineassist.com; admin /admin.
Voorwaarden
VPS, DNS naar server, TLS certificaat.
Stap-voor-stap
- Build frontend:
npm run build— output naar static hosting path. - Deploy server API met env: database,
ADMIN_EMAILS, mail/Graph secrets. - Configureer CORS voor Capacitor origins (
https://localhost, app scheme). - Reverse proxy (nginx) TLS terminate naar Node.
- Run migrations indien database project.
- Smoke test: /parent, /child, /wachtwoord-vergeten, /uitnodiging.
- Monitor logs na deploy; rollback via vorige release artifact.
Opties & instellingen
Geen secrets in git — .env op server only.
Tips & veelvoorkomende problemen
Staging subdomain aanbevolen vóór prod push.