Deploy

Deploy the starter to Railway in one click

A woman on a phone call by an office window

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.

  1. Deploy the template from the README
  2. Wait for the server to log that it started
  3. Open /health/ready on your domain
  4. Sign up and create an organisation
A person working at a standing desk with two screens
People walking along a bright corridor

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.

You might also like

Billing
A woman typing on a laptop at a desk by a window

Add a plan and change what each plan includes

Edit the plans in the contracts package, create the Stripe price and check the limits on the server.

Page editor
A hand sketching page wireframes beside a laptop

Add a new section block to the page editor

Write the component, describe its fields for the Style panel and register it so editors can insert it.

A woman pinning shapes to a glass wall

Let's Talk

Get in touch