Ga naar hoofdinhoud

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

  1. Build frontend: npm run build — output naar static hosting path.
  2. Deploy server API met env: database, ADMIN_EMAILS, mail/Graph secrets.
  3. Configureer CORS voor Capacitor origins (https://localhost, app scheme).
  4. Reverse proxy (nginx) TLS terminate naar Node.
  5. Run migrations indien database project.
  6. Smoke test: /parent, /child, /wachtwoord-vergeten, /uitnodiging.
  7. 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.

Zie ook