Skip to main content

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

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

See also