Overview
This guide covers deploying MergeWatch on either Railway or Render. Both platforms follow the same pattern: connect your GitHub repo, configure environment variables, add a Postgres database, and point your GitHub App webhook at the provided URL.Prerequisites
2
Gather your GitHub App credentials
3
Choose an LLM provider
Set
LLM_PROVIDER to your preferred provider. For the default Anthropic provider, you also need ANTHROPIC_API_KEY.Deploy on Railway
1
Create a new project
- Go to railway.app/new
- Select Deploy from Docker Image
- Enter the image:
ghcr.io/mergewatch/mergewatch:latest
2
Add a PostgreSQL plugin
- In your project, click + New and select Database > PostgreSQL
- Railway provisions a Postgres instance and exposes the
DATABASE_URLvariable automatically
3
Set environment variables
Go to your service’s Variables tab and add:
Railway sets
DATABASE_URL automatically from the PostgreSQL plugin. Do not set it manually unless you are using an external database.4
Deploy and get the URL
Railway deploys automatically when variables are saved. Find your public URL under Settings > Networking > Public Networking. Generate a domain if one is not assigned.
Deploy on Render
1
Create a new Web Service
- Go to dashboard.render.com
- Click New > Web Service
- Select Deploy an existing image from a registry
- Enter:
ghcr.io/mergewatch/mergewatch:latest
2
Add a PostgreSQL service
- Click New > PostgreSQL
- Choose a name and plan (the free tier works for evaluation)
- Copy the Internal Database URL from the PostgreSQL service dashboard
3
Set environment variables
In the Web Service settings, go to Environment and add:
4
Deploy and get the URL
Render deploys automatically. Your service URL is shown at the top of the dashboard:
Set up Postgres
Both platforms provide managed PostgreSQL as a first-party add-on.Configure the webhook URL
Set the webhook URL on your GitHub App to your platform URL followed by/webhook:
Next steps
Configure review behavior
Tune sensitivity, ignored paths, and review focus areas.
Environment variables
Full list of supported environment variables.
Troubleshooting
Common issues and how to fix them.
Upgrading
How to update MergeWatch to the latest version.