Deploy VPS
Goal
Production available for web, Capacitor and admin.
For whom
DevOps with server access.
Where in the app
Production URL https://routineassist.com; admin /admin.
Prerequisites
VPS, DNS to server, TLS certificate.
Step by step
- Build frontend:
npm run build— output to static hosting path. - Deploy server API with env: database,
ADMIN_EMAILS, mail/Graph secrets. - Configure CORS for Capacitor origins (
https://localhost, app scheme). - Reverse proxy (nginx) TLS terminate to Node.
- Run migrations if database project.
- Smoke test: /parent, /child, /wachtwoord-vergeten, /uitnodiging.
- Monitor logs after deploy; rollback via previous release artifact.
Options & settings
No secrets in git — .env on server only.
Tips & troubleshooting
Staging subdomain recommended before prod push.