Daily Meet Wiki / Backend deployment

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

backendadmin-panelwikiwebsiteuser-web
Source repodaily-meet-platformdaily-meet-platformdaily-meet-platformdaily-meet-appdaily-meet-app
Root directorybackendadmin_paneldocs-sitewebsiterepo root, deploy/user-web/Dockerfile
Start / builduvicorn app.main:app --host 0.0.0.0 --port $PORTuvicorn main:app --host 0.0.0.0 --port $PORTDockerfile (Caddy)Dockerfile (Caddy)Dockerfile (Flutter web build + Caddy)
Domainapi(-staging).dailymeet.inadmin(-staging).dailymeet.inwiki.dailymeet.inwww.dailymeet.in—
Healthcheck/health————
Replicas1 (region iad) — do not scale until shared realtime coordination exists1 (iad)1 (iad)1 (iad)1 (iad)
Volumesprivate-documents at /app/private_documents, per environment————
Exists inboth environmentsboth environmentsproduction onlyproduction onlydeclared, not created
Deploys from branchmain/production per environmentmain/production per environmentalways mainalways main (of daily-meet-app)main/production per environment
i

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 anything
  • railway config apply — prompts before destructive changes; a stray --yes alone can't silently delete infrastructure without --confirm-destructive too

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.