Deployment

Build, migrate, and run Openfront Coffee Shop on Railway, Vercel, or your own server.

Scripts in package.json:

ScriptEffect
npm run buildkeystone build --no-ui && next build. Does not migrate
npm run migrateprisma migrate deploy
npm startnext start
npm run lintESLint
npm run typechecktsc --noEmit
npm testUnit tests under features and app with tsx --test

A typical release builds, applies migrations as a separate step against a backed-up database, then starts:

npm run build
npm run migrate
npm start

The included railway.toml builds with keystone build --no-ui && next build and starts with npm run migrate && next start, because the build environment cannot reach an internal database. The README also has a Vercel import button. Either way, provision PostgreSQL, S3-compatible storage, SMTP, and any Stripe credentials yourself. Share the same database, SESSION_SECRET, and storage across all app processes.