Overview
The Railway template deploys the starter with no input. It creates three services on one private network: Postgres, the Hono API and Caddy, which serves the app and proxies the API.
Only the web service has a public domain, so the app and the API share one HTTPS origin and the auth cookies stay first-party.
Deploy
Press the deploy button in the README. Railway generates the auth secret, points the API at the database and gives the web service a domain. The API runs its migrations as a pre-deploy step, so the database is up to date before it starts.
- Deploy the template from the README
- Wait for the server to log that it started
- Open /health/ready on your domain
- Sign up and create an organisation
Add what you need
Email, analytics and billing are off until you add their keys to the server: Loops for email, PostHog for analytics and Stripe for billing. Without them the app still runs, and the billing page says billing is switched off.
To use your own domain, add it to the web service, then set BETTER_AUTH_URL and APP_ORIGIN on the server to the new address and redeploy it.
0
Services on one private network: Postgres, the API and the web proxy.
0
Public domain, so the app and the API share one origin.
0
Values to type before the first deploy; the auth secret is generated.







