Deploy
Deploying to Railway
Deploy your RivetKit app to Railway.
Option A: Deploy from Template
If you're starting from scratch, go to the Connect tab on the Rivet dashboard and follow the Railway deployment steps. This give you a 1-click deploy of the RivetKit Railway template.
Option B: Deploy Manual
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
Setup Project for Railway
Ensure your package.json has a start script:
JSON
Deploy to Railway
- Connect your GitHub account to Railway
- Select your repository containing your RivetKit app
- Railway will automatically detect and deploy your app
Railway will automatically deploy your RivetKit app on every git push.
Detailed steps are available on Railway's docs.
You do not need to expose a container port. Rivet tunnels traffic directly to your backend.
Set Environment Variables
After selecting your project on the Rivet dashboard, go to Connect > Railway to get the environment variables needed.
To add your environment variables:
- Go to your Railway project dashboard
- Select your service
- Navigate to the Variables tab
- Add the required environment variables and deploy your changes
Detailed steps are available on Railway's docs.
Verify Deployment
You should see your runner connected on the Connect tab of your Rivet Dashboard. Now you can create and connect to your Rivet Actors.