Backend deployment
Backend, Admin Panel, Postgres, the wiki and the marketing website all run on Railway, described as code in .railway/railway.ts. Full detail lives in daily-meet-platform/docs/18_RAILWAY_DEPLOYMENT.md — this page is the quick-reference.
The golden rule
Change services/volumes/env through .railway/railway.ts (railway config plan to preview, railway config apply to apply) — not by clicking around the Railway dashboard. A dashboard edit still works, but it drifts out of sync with the file until someone runs railway config pull --force; skipping that step risks a later apply deleting a variable someone added by hand. This happened once already (2026-09-24) — a dashboard-added Cashfree/MSG91/Stream key set was about to be wiped by a blind apply — and again on 2026-09-30, when RESEND_API_KEY, SMTP_*, EMAIL_FROM_ADDRESS and ADMIN_SIGNUP_ALLOWED_PHONES showed up as planned deletions. Always read the plan for deletions before applying. railway config pull --force also flattens the file to whichever environment is linked, so the isProd branching has to be restored by hand after a pull.
One file, two environments
.railway/railway.ts encodes both testing and production using the railway/iac package's ctx.isEnvironment("production") pattern — not two separate files:
export default defineRailway((ctx) => {
const isProd = ctx.isEnvironment("production");
// ...
domains: [isProd ? "api.dailymeet.in" : "api-staging.dailymeet.in"],
source: github(..., { branch: isProd ? "production" : "main", ... }),
env: { ENVIRONMENT: isProd ? "production" : "staging", ... }
Switch which environment a command targets, then plan/apply as usual:
railway environment testing # or: railway environment production
railway config plan
railway config apply
Custom domains: a CLI quirk
DNS for dailymeet.in is on Cloudflare — add the CNAME/TXT records Railway prints there as DNS-only (grey cloud). See Environments for the full record list.
railway config apply can only reflect a custom domain that already exists on a service — it can't create a brand-new one. To add one:
railway domain <domain> --service <name> --environment <env> # creates it, prints DNS records
railway config pull --force # picks it up into railway.ts
Service basics
| backend | admin-panel | wiki | website | user-web | |
|---|---|---|---|---|---|
| Source repo | daily-meet-platform | daily-meet-platform | daily-meet-platform | daily-meet-app | daily-meet-app |
| Root directory | backend | admin_panel | docs-site | website | repo root, deploy/user-web/Dockerfile |
| Start / build | uvicorn app.main:app --host 0.0.0.0 --port $PORT | uvicorn main:app --host 0.0.0.0 --port $PORT | Dockerfile (Caddy) | Dockerfile (Caddy) | Dockerfile (Flutter web build + Caddy) |
| Domain | api(-staging).dailymeet.in | admin(-staging).dailymeet.in | wiki.dailymeet.in | www.dailymeet.in | — |
| Healthcheck | /health | — | — | — | — |
| Replicas | 1 (region iad) — do not scale until shared realtime coordination exists | 1 (iad) | 1 (iad) | 1 (iad) | 1 (iad) |
| Volumes | private-documents at /app/private_documents, per environment | — | — | — | — |
| Exists in | both environments | both environments | production only | production only | declared, not created |
| Deploys from branch | main/production per environment | main/production per environment | always main | always main (of daily-meet-app) | main/production per environment |
This page (and the rest of this wiki) is itself served this way — wiki.dailymeet.in is the wiki Railway service, built from docs-site/Dockerfile. Push to main and it redeploys automatically.
user-web is paused. It is declared in railway.ts for both environments but was never created (Railway plan's service limit), and User web work is paused until after the Android and iOS launches. Until it exists, every railway config plan shows it as "to add" — that line is expected; check railway config apply --json output rather than assuming success. Resume checklist: daily-meet-app/docs/04_USER_APP/WEB.md.
Database
A managed Railway Postgres service per environment — never shared. See Environments for the isolation guarantee and how it was verified.
Plan is safe, apply is not
railway config plan— read-only, never changes anythingrailway config apply— prompts before destructive changes; a stray--yesalone can't silently delete infrastructure without--confirm-destructivetoo
Promotion (releasing to production)
git checkout production
git merge origin/main
git push origin production
That push is the entire release action — Railway auto-deploys both services in the production environment. Test on testing first; there's no additional CI gate.
Full detail
For sizing/backups, RTC/coturn deployment specifics, and the required pre/post-deploy checklist, see daily-meet-platform/docs/18_RAILWAY_DEPLOYMENT.md and docs/19_OPERATIONS_RUNBOOK.md in the platform repo.