The repository's render.yaml is deliberately a free preview blueprint. It deploys the Docker image and checks GET /api/health, but has no disk. It does not set CONCORD_EPHEMERAL, so the dashboard does not warn that data is erased; set CONCORD_EPHEMERAL=1 if you want that notice. Treat the preview's accounts, uploaded registers, sign-offs and session state as disposable: a restart or redeploy erases its local SQLite data.
Use a paid instance with a persistent disk for a long-running deployment.
- In Render, choose a paid web-service instance type that supports persistent disks. The build/runtime remains Docker, using this repository's
Dockerfile. - Attach one persistent disk at
/databefore entering real data. The Dockerfile usesCONCORD_DATA_DIR=/data; the API storescontrol.dband workspace files at/data/orgs/. Make sure the runtime can write there. - Make sure
CONCORD_EPHEMERALis unset (or0): if it is set, the UI warns that data is ephemeral despite the persistent disk. - Keep
CONCORD_TRUST_PROXY=1because Render supplies one reverse-proxy hop for rate-limit IP attribution. SetCONCORD_SIGNUP=codeif you do not want open sign-up. Configure optional OAuth client id/secret only in Render's secret environment settings, not committed YAML. - Render supplies
RENDER_EXTERNAL_URL;services/api/src/config.tsuses it whenCONCORD_PUBLIC_URLis unset. SetCONCORD_PUBLIC_URLexplicitly if you use a custom HTTPS domain; Google OAuth's authorized redirect URI must be<public-url>/api/auth/google/callback. - Leave the health check at
/api/health. Verify that it returns{"ok":true}, that sign-in survives a service restart, and that a watched asset continues indexing.
If managing the service via a Render blueprint, update your deployment's copy of render.yaml to a paid plan and a persistent disk mounted at /data. The repository's shipped free blueprint is for demos: changing only plan: free to paid without adding a disk does not make databases durable.
Do not restart, deploy, or change instance type expecting Render to migrate the old container filesystem to the new disk. A free preview may have already lost data on idle spin-down.
- If you can still access the old instance's filesystem, first make a verified off-host backup of the complete data directory using Concord's backup procedure. SQLite runs in WAL mode, so prefer the application's
pnpm concord backupprocedure to a livecpof database files. Transfer the backup somewhere you control before modifying the service. - If you do not have shell access or an off-host backup, you cannot assume the old databases are recoverable. An audit CSV download is not a complete restore of account/session/workspace state. You may need to recreate the workspace and re-import the original source register, journal and instruction CSVs. Historic sign-offs might be unrecoverable.
- Provision the paid service and disk, restore the backup into its new data directory while the app is stopped, and start a single instance. Validate workspace membership, uploaded files, and sign-off state before decommissioning the old service. See upgrading and rollback for checks.
Concord runs an in-process Stellar indexer and uses local SQLite files. A Render disk belongs to one running instance; scaling to multiple independent services can split account state and duplicate indexing. Maintain one always-on worker/web process with one mounted disk, and take off-host backups before major changes.
The project's hosted demo is https://concord-bobz.onrender.com (health check: https://concord-bobz.onrender.com/api/health). The steps below use it; replace the address with your own service if you run another.
The free preview forgets everything whenever it restarts or sleeps, so for a demo, plan on rebuilding it rather than trusting it. None of this makes data durable; it makes the demo cheap to bring back.
- Keep it awake. A free service sleeps after about 15 minutes without traffic and takes up to
a minute to wake. Point a free uptime pinger (cron-job.org, UptimeRobot) at
https://concord-bobz.onrender.com/api/healthevery 5 to 10 minutes from the day before. The pinger only keeps the service awake; it does nothing about a restart. - Rebuild before you present. From your own machine, after
pnpm demo:testnethas writtendata/demo/, runpnpm demo:load --url https://concord-bobz.onrender.com --password '<choose one>'(what it does). It is safe to run again. Do it about ten minutes before you start, so a cold start and the first indexing pass are behind you. - Check what the audience will see. Sign in, open the asset, and confirm the Reconciliation tab lists the planted breaks, the Controls tab shows the uninstructed clawback and the stale freeze, and the dividend and split are on the Actions tab. The dashboard does not warn that data is erased on restart (that notice is off), so say it out loud if it matters to the audience.
- Have the fallback ready. If the service restarts mid-demo, run the same
demo:loadline again and sign back in. Running Concord on your laptop (pnpm start, thendemo:load --url http://127.0.0.1:4400) gives the identical workspace without depending on Render at all. - Afterwards, a paid instance with a disk (above) is what keeps real data.
render.yaml: free-preview plan, health check and proxy flag (CONCORD_EPHEMERALis left off)Dockerfile: production image and default/datastorageservices/api/src/config.ts:RENDER_EXTERNAL_URLfallback, public URL, data directory, proxy and ephemeral settingsdocs/upgrading.md: consistent backups, restore and rollback