Deployment
Deploy Openfront Dental on Railway or any Node host with PostgreSQL.
The repository includes railway.toml. The build runs keystone build --no-ui && next build, and the start command runs sh scripts/start.sh.
Processes
| Process | Command | Purpose |
|---|---|---|
| Web | sh scripts/start.sh | Resolves two rolled-back migrations, runs npm run migrate, runs idempotent data scripts (member-ID rehash, balance rebuild, claim reference seed, statement hashes, duplicate remittance report), then next start. |
| Pending work | Run pending work on Day and month close (runPendingWork) | Expires holds, sweeps no-shows, settles stale eligibility checks and claims, fetches remittances and runs payment jobs, each under a lease. |
Checklist
- Provision PostgreSQL and set
DATABASE_URL. - Set
SESSION_SECRET(32+ characters) andDENTAL_SECRET_KEY(32 bytes). - Set the Stripe keys and point a Stripe webhook at
/api/webhooks/stripeif you take cards. - Set SMTP so password resets and portal codes are delivered.
- Deploy, open
/dashboard/initand create the first user. - Leave
DENTAL_ALLOW_SAMPLE_PRACTICEunset on a practice's real deployment.
There is no worker service and no cron. Scheduled steps run when a person presses Run pending work, and two copies never run the same step because each holds a lease.