Deployment
Build and start commands, required services, secrets, the Stripe webhook and hold expiry.
The Railway template deploys the app from GitHub with PostgreSQL and a private bucket named Storage. It generates SESSION_SECRET and points the app URLs at the service's public domain. Stripe and SMTP variables are left blank.
Processes
| Process | Command | Purpose |
|---|---|---|
| Build | keystone build --no-ui && next build | Generates the schema and builds Next.js |
| Web | npm run migrate && next start | Applies migrations, then serves the storefront, dashboard and GraphQL |
railway.toml in the repository sets the build and start commands. Migrations run at start, not at build, because the database is usually reachable only from the running service.
There is no scheduler to run. Expired holds are released whenever the storefront lists shows (showsOnSale) or opens one (showAvailability), and the same request settles pending payments whose hold ran out more than five minutes ago, asking Stripe for the outcome first.
Checklist
- Provision PostgreSQL. Set
DATABASE_URLand aSESSION_SECRETof 48 or more characters. - Set
NODE_ENV=production,PUBLIC_SIGNUPS_ALLOWED=false, andSTOREFRONT_URLto the public origin. - Add Stripe keys. In the Stripe dashboard, create a webhook endpoint at
https://your-host/api/integrations/payment/pp_stripe/webhookforpayment_intent.succeeded,payment_intent.payment_failed,payment_intent.canceled,charge.refundedandrefund.updated. Put its signing secret inSTRIPE_WEBHOOK_SECRET. - Deploy, open
/dashboard/init, create the first admin, and run setup. - Buy a ticket and refund it from Orders to confirm payments and the webhook.