Daily Meet Wiki / Environments

Environments

Two fully isolated Railway environments — testing and production — each with its own domain, database, and deploy trigger. Set up 2026-09-24.

⚠

Both environments now move real money. Production runs live Razorpay and Cashfree keys (active provider Cashfree, since 2026-10-01). Testing was given live Razorpay keys on 2026-09-30 to trial live payments before production — a recharge on a staging build charges a real card/UPI. Use small amounts. Keys are set directly as Railway variables by the account owner, never in a repo or chat.

URLs

TestingProduction
Backend API https://api-staging.dailymeet.in https://api.dailymeet.in
Admin Panel https://admin-staging.dailymeet.in https://admin.dailymeet.in
Railway fallback URLs backend-production-74c8.up.railway.app, admin-panel-production-64bd.up.railway.app backend-production-092e1.up.railway.app, admin-panel-production-b9f1.up.railway.app
Backend health check/health on either backend URL
Public legal pagesapi-staging.dailymeet.in/privacy-policy etc.api.dailymeet.in/privacy-policy, /delete-account and other /{slug} pages (text edited in Admin → Legal, per environment)

Everything else, side by side

TestingProduction
Railway environment nametestingproduction
Deploys from git branchmain — every push auto-deploysproduction — only when that branch updates
Backend ENVIRONMENT valuestagingproduction
Databaseown Postgres, own volumeown Postgres, own volume — never shares data with testing
Razorpaylive keys (active provider)live keys
Cashfreesandbox — staging setup still pendinglive, CASHFREE_ENVIRONMENT=production (active provider)
Admin-managed settings (RTC/OTP/recharge provider, feature switches, coin packs, legal text, interface languages)stored in each environment's own database — changing one environment's Admin never affects the other
Firebase, Stream, Agora, MSG91, Resend, Cloudflare TURNshared between both environments (one account/app each) — see Third-party services. A Stream dashboard change, for example, applies to both at once.
Services that exist only oncewiki and website live only in the production Railway environment and deploy from main — see Deployment

The apex domain (dailymeet.in)

The root domain carries the Google Workspace mail records (MX → smtp.google.com, plus a google-site-verification TXT), so no service is ever pointed at it with a CNAME. Instead, the apex A record is proxied through Cloudflare (orange cloud) only so a Cloudflare Redirect Rule can send http(s)://dailymeet.in/* to https://www.dailymeet.in/* (301, path and query kept).

DNS records (zone dailymeet.in)

Since 2026-09-30 DNS is hosted on Cloudflare (free plan); BigRock is still the registrar. Every Railway and Resend record is DNS-only (grey cloud) — proxying them breaks Railway's certificate checks. Registrar, nameserver and DNS edits are done by the account owner.

TypeHostPoints toEnvironment
CNAMEapi-stagingbjs7qxy4.up.railway.apptesting
CNAMEadmin-stagingmbe81k3e.up.railway.apptesting
CNAMEapit9pf24e9.up.railway.appproduction
CNAMEadminteeqzggt.up.railway.appproduction
CNAMEwiki47c0rmew.up.railway.appproduction (wiki)
CNAMEwwwyg9uwc6d.up.railway.appproduction (website)
A (proxied)@Cloudflare — redirect to www—
TXT / CNAME_railway-verify.*, Resend DKIM + sendverification records—

Check current status any time: railway domain status <domain> --service <name> --environment <env> (expect Verified: yes, Certificate status: CERTIFICATE_STATUS_TYPE_VALID). Note: if a custom domain is ever deleted and re-created, Railway issues a new CNAME target — re-check before assuming the value above still applies.

Promoting testing → production

production deploys only from the production git branch, specifically so a routine push to main can never reach real users by accident. To release what's on main in daily-meet-platform:

git checkout production
git merge origin/main
git push origin production

Railway auto-deploys both backend and admin-panel in the production environment once that lands. There is no CI gate beyond this — the merge itself is the release action, so only merge what has actually been exercised on testing first.

daily-meet-app has its own production branch (fast-forward from main: git push dailymeet dailymeet/main:production). Store builds (AABs) are cut from it; nothing on Railway deploys from it yet. A "release to production" normally means releasing both repos together.

Switching which environment you're looking at (Railway CLI)

railway environment testing      # or: railway environment production
railway status                   # confirms which one is linked
railway variables --service backend --environment production --kv

History

Until 2026-09-24 there was a single Railway environment, internally (and confusingly) named production even though it was being used for day-to-day testing. It was renamed to testing, moved onto the -staging subdomains, and a real production environment was created alongside it via railway environment new production --duplicate testing (which is also why production initially inherited testing's env values — each had to be corrected by hand afterward, including the security-relevant ENVIRONMENT flag). Full blow-by-blow is in daily-meet-platform/docs/KT_CHANGELOG.md under 2026-09-24.