Deployment
Build, migrate, and run Openfront Barbershop on Railway, Vercel, or your own Node.js server.
The app needs a Node.js server, PostgreSQL, and S3-compatible storage.
npm run build # keystone build --no-ui && next build; does not migrate
npm run migrate # prisma migrate deploy
npm start # next start- Railway:
railway.tomlbuilds withprisma generate && keystone build --no-ui && next buildand starts withnpm run migrate && next start, so migrations run at start. - Vercel: the README has a Deploy button that asks for
DATABASE_URLandSESSION_SECRET. You still need to set theS3_*variables,APP_ORIGIN, and any optional services, and run migrations as a release step.
Production checklist:
- Back up the database and test a restore.
- Set
APP_ORIGINto the HTTPS origin. - Set a new
SESSION_SECRETand keep it the same across all app instances. - Configure SMTP if you want resets, booking emails, and reminders.
- Only one shop should be public for the storefront.
- Replace or remove the starter data from onboarding that does not match your shop.