Platforms

Deploying to Railway

Deploy your RivetKit app to Railway.

Steps

Prerequisites

Deploy to Railway

  1. Connect your GitHub account to Railway
  2. Select your repository containing your RivetKit app
  3. Railway will automatically detect and deploy your app

See Railway’s deployment docs for more details.

Set Environment Variables

After creating your project on the Rivet dashboard, select Railway as your provider. You’ll be provided RIVET_ENDPOINT and RIVET_PUBLIC_ENDPOINT environment variables to add to your Railway service.

See Railway’s environment variables docs for more details.

Connect to Rivet

  1. In your Railway project, go to Settings > Networking
  2. Click Create Custom Domain then Create Domain to generate a Railway domain (e.g. my-app.railway.app)
  3. On the Rivet dashboard, paste your domain with the /api/rivet path into the connect form (e.g. https://my-app.railway.app/api/rivet)
  4. Click “Done”

Configure Sleeping & Multi-Region (Optional)