DEPLOY IN RAILWAY DASHBOARD
Documentation management API with real-time MongoDB sync
🚀 Deploy in Railway Dashboard (Easiest Way)
You're in Settings Tab - Here's What to Do:
Step 1: Configure Build (in Settings tab you're viewing)
Scroll to "Build" section:
- Builder: Click dropdown → Select "Dockerfile"
- Dockerfile Path: Enter
deployment/Dockerfile.railway.docs-api
Step 2: Configure Deploy
Scroll to "Deploy" section (same page):
- Click "+ Start Command"
- Enter:
node dist/apis/backend-docs-api/main.js
Step 3: Configure Health Check
Scroll to Health Check section:
- Click "+ Health Check Path"
- Enter:
/docs-api/health - Timeout:
300
Step 4: Save (if there's a Save button)
Click "Save" if prompted.
Step 5: Go to Deployments Tab
- Click "Deployments" tab (top of the panel)
- Click "Deploy" button (top right)
Railway will:
- Use our Dockerfile
- Build the app (takes 3-5 minutes)
- Start it with the correct command
- Monitor health check
Watch the Build
In Deployments tab you'll see:
- "Building..." → "Deploying..." → "Success"
Click on the deployment to see live logs!
After Success
- Go to Settings → Networking
- Click "Generate Domain"
- Copy the URL
- Test:
curl https://your-domain.railway.app/docs-api/health
Then we'll sync the data!