Back to Rivet

Deploying to Railway

website/src/content/docs/connect/railway.mdx

2.2.11.7 KB
Original Source

Steps

<Steps> <Step title="Prerequisites"> </Step> <Step title="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.

</Step> <Step title="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.

</Step> <Step title="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"
</Step> <Step title="Configure Sleeping & Multi-Region (Optional)"> </Step> </Steps>