Platforms
Deploying to Railway
Deploy your RivetKit app to Railway.
Steps
Prerequisites
- Railway account
- Your RivetKit app
- If you don’t have one, see the Quickstart page or our Examples
- Access to the Rivet Cloud or a self-hosted Rivet Engine
Deploy to Railway
- Connect your GitHub account to Railway
- Select your repository containing your RivetKit app
- 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
- In your Railway project, go to Settings > Networking
- Click Create Custom Domain then Create Domain to generate a Railway domain (e.g.
my-app.railway.app) - On the Rivet dashboard, paste your domain with the
/api/rivetpath into the connect form (e.g.https://my-app.railway.app/api/rivet) - Click “Done”
Configure Sleeping & Multi-Region (Optional)
- Enable App Sleeping to reduce costs when idle
- Configure Multi-Region to deploy closer to your users