Deploy on a VPS

StaffSense needs Node.js and a Postgres database — nothing else. Screenshots live in Postgres with the rest of your data.

End result: your company URL is https://staffsense.customdomain.com. Agents install the desktop app and set Server URL to https://staffsense.customdomain.com/api.

How agents connect (after you deploy)

  1. You finish the VPS install below so the site is live on your domain
  2. Agents download the Windows client
  3. They set Server URL to https://staffsense.yourcompany.com/api
  4. They sign in with the email/password you created and clock in

What you need

1. Configure

Clone the release, then copy .env.example to apps/server/.env and set:

2. Build & migrate

pnpm install pnpm --filter @staffsense/shared build pnpm --filter @staffsense/server prisma:generate pnpm --filter @staffsense/server prisma:deploy pnpm --filter @staffsense/server prisma:seed pnpm --filter @staffsense/server build pnpm --filter @staffsense/web build

3. Run behind TLS

Run the API (node apps/server/dist/main.js, port 4000) and web (pnpm --filter @staffsense/web start, port 3000). Proxy /api/* → API (strip the /api prefix), everything else → web. Open https://your-domain and sign in as the seed admin.

4. Configure the product

  1. Create users (admins, managers, agents)
  2. Create projects and security presets
  3. Assign agents and schedules
  4. Tell agents: Server URL = https://your-domain/api

5. Backup

A Postgres dump is enough — it includes screenshots and recordings. Restore that dump to recover the full instance.

Next: Download Windows clientAgent quick start