Deployment

Build, migrate, and run Openfront Construction.

ScriptEffect
npm run buildkeystone build --no-ui && next build. Does not migrate
npm run migrateprisma migrate deploy
npm startnext start

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 Railpack using keystone build --no-ui && next build and starts with npm run migrate && next start. The README has a Vercel import button that asks for DATABASE_URL and SESSION_SECRET. Either way, you provision PostgreSQL, S3-compatible storage, and SMTP yourself. All app processes must share the same database and SESSION_SECRET.

Checks before release

npm run typecheck
npm run lint
npm run lint:schema
npm run test:security

On this page