Platforms
Render Deployment
Deploy Rivet Engine to Render with managed PostgreSQL and automatic HTTPS.
Prerequisites
- A Render account
- A GitHub repository
Deploy Rivet Engine
Create the Blueprint Files
Add these three files to the root of your GitHub repository:
render.yaml
databases:
- name: rivet-db
plan: basic-256mb
databaseName: rivet
user: rivet
services:
- type: web
name: rivet-engine
runtime: docker
dockerfilePath: ./Dockerfile.render
plan: starter
healthCheckPath: /health
envVars:
- key: DATABASE_URL
fromDatabase:
name: rivet-db
property: connectionString
- key: RIVET__AUTH__ADMIN_TOKEN
generateValue: true
Dockerfile.render
FROM rivetdev/engine:latest
COPY entrypoint.render.sh /entrypoint.render.sh
RUN chmod +x /entrypoint.render.sh
ENTRYPOINT ["/entrypoint.render.sh"]
entrypoint.render.sh
#!/bin/sh
if [ -n "$DATABASE_URL" ]; then
export RIVET__POSTGRES__URL="${DATABASE_URL}?sslmode=disable"
fi
exec /usr/bin/rivet-engine start
Commit and push these files to your repository.
Deploy to Render
- Go to the Render Dashboard
- Click Blueprints in the left sidebar
- Click New Blueprint Instance
- Connect your GitHub account if you haven’t already
- Select the repository containing the files from the previous step
- Click Apply
Render will automatically create the PostgreSQL database and deploy the Rivet Engine.
Get Your Admin Token
- Once deployed, go to your rivet-engine service in the Render Dashboard
- Click the Environment tab
- Find
RIVET__AUTH__ADMIN_TOKENand click the eye icon to reveal the value - Copy this token — you’ll need it to access the dashboard
Access the Rivet Dashboard
Open your service URL in a browser:
https://rivet-engine-xxxx.onrender.com/ui/
Replace rivet-engine-xxxx with your actual service name from the Render Dashboard.
Enter the admin token from the previous step to log in.
Connecting Your Application
To connect a RivetKit application to your self-hosted engine, set these environment variables in your app:
RIVET_ENDPOINT=https://<namespace>:<admin-token>@rivet-engine-xxxx.onrender.com
RIVET_PUBLIC_ENDPOINT=https://<namespace>@rivet-engine-xxxx.onrender.com
See the Connect guide for more details on connecting your application.
Next Steps
- Review the Production Checklist before going live
- See Configuration for all options