Put Oncall online
Oncall runs on your own computer first. To use it from anywhere, put it online: Run Edit Run can set it up with you or run it for you, or you can do it yourself on your own Cloudflare account.
Allow roughly 500 MB–1 GB of downloads and 1–3 GB of disk space for a first run, including Node, rer, the app and its dependencies. The app and your computer can need more; later runs reuse downloads.
Run it yourself
One line in your terminal gets Oncall running on your computer, with you as its owner. The command installs the latest published release.
ONCALL_TAG=$(curl -fsS -o /dev/null -w '%{redirect_url}\n' https://github.com/just-every/run-oncall/releases/latest | sed -nE 's|^.*/releases/tag/(v[0-9]+\.[0-9]+\.[0-9]+)$|\1|p') && test -n "$ONCALL_TAG" && mkdir run-oncall && cd run-oncall && git init -q && git remote add origin https://github.com/just-every/run-oncall && git fetch --quiet --depth 1 origin tag "$ONCALL_TAG" && git checkout --quiet --detach "refs/tags/$ONCALL_TAG" && curl -fsSL https://runeditrun.com/install.sh | sh -s -- dev --host localhost Already have Node 22 or later?ONCALL_TAG=$(curl -fsS -o /dev/null -w '%{redirect_url}\n' https://github.com/just-every/run-oncall/releases/latest | sed -nE 's|^.*/releases/tag/(v[0-9]+\.[0-9]+\.[0-9]+)$|\1|p') && test -n "$ONCALL_TAG" && mkdir run-oncall && cd run-oncall && git init -q && git remote add origin https://github.com/just-every/run-oncall && git fetch --quiet --depth 1 origin tag "$ONCALL_TAG" && git checkout --quiet --detach "refs/tags/$ONCALL_TAG" && npx -y @runeditrun/rer dev --host localhost
macOS, Linux or Windows with WSL2. git is required; rer brings Node and pnpm.
Oncall then runs only on your computer: nobody else can open it, and it sends no email. To start it again later, inside run-oncall, run "$HOME/.local/bin/rer" dev --host localhost if you used the installer or npx -y @runeditrun/rer dev --host localhost if you used the Node alternative.
Assisted
Let Run Edit Run do it
We set it up with you and keep it updated. It stays yours, on your computer or your own cloud.
Either way, we guide you through the setup.
What stays yours
- The code: Oncall is MIT licensed, so you can change it and run it without us.
- The data: it stays on your computer or in your own Cloudflare account.
- If you stop, your repository and your Cloudflare account stay yours.
For now, sign-ups are by request. The link asks for access with Oncall and Assisted already chosen, and we email you about the next steps.
Managed
Let Run Edit Run host it
We run it for you. Nothing to install.
Oncall runs on Run Edit Run's cloud instead of yours. The code stays MIT licensed, so you can still run it yourself.
For now, sign-ups are by request. The link asks for access with Oncall and Managed already chosen, and we email you about the next steps.
Put it online yourself
Put Oncall on your own Cloudflare account from a terminal. rer deploy does the work from your hosting checkout.
What you need
- Prepare your owner in a hosting checkout. Use that checkout for the steps below. If you installed with Node, use
npx -y @runeditrun/rerin place of"$HOME/.local/bin/rer". - A Cloudflare account (sign up). Oncall runs on Cloudflare Workers with a D1 database, Durable Objects and a schedule; Cloudflare's pricing lists what each plan includes.
Give your Cloudflare account a workers.dev address
In the Cloudflare dashboard, open Workers & Pages. The first time, Cloudflare asks you to choose your account's
workers.devsubdomain, for exampleyourname. Oncall will answer at:https://oncall-production.yourname.workers.devWithout it, rer deploy stops with
workers-subdomain-missing.Find your account ID and make an API token
- In Workers & Pages, copy your Account ID.
- Open API Tokens (My Profile → API Tokens), choose Create Token, then Create Custom Token.
- Name it
Oncall deployand add these account permissions: Workers Scripts: Edit and D1: Edit. Under Account Resources, choose your account. No zone permission is needed. - Choose Continue to summary, then Create Token, and copy the token. Cloudflare shows it once.
If a permission is missing, the deploy stops with an error such as
token-scope-missing-d1: add that permission to the token and run the same command again.Write the deploy file
In your hosting checkout, create
.env.oncallwith the lines below. Replace the two Cloudflare placeholders and keepMAIL_PROVIDER=none. Leave the sender and mail credentials unset.CLOUDFLARE_ACCOUNT_ID=replace-with-account-id CLOUDFLARE_API_TOKEN=replace-with-token-secret MAIL_PROVIDER=noneMake it readable only by you; rer deploy refuses it otherwise. Never add it to a commit.
chmod 600 .env.oncallDeploy
If a server is running in this checkout, stop it with
"$HOME/.local/bin/rer" dev --stopor"$HOME/.local/bin/rer" preview --stop.If your shell already has Cloudflare credentials, run
unset CLOUDFLARE_ACCOUNT_ID CLOUDFLARE_API_TOKENbefore using the private file."$HOME/.local/bin/rer" deploy --env-file .env.oncall --dry-run "$HOME/.local/bin/rer" deploy --env-file .env.oncallThe dry run checks the local build and deploy plan without contacting Cloudflare. The real deploy prints the app’s HTTPS address, claims the owner and reports that email is off. The hosted database starts empty.
From the same checkout, run
"$HOME/.local/bin/rer" signin --env-file .env.oncall. Open the private URL it prints within 15 minutes, press Confirm and complete Finish setup if shown.To enable email links, follow the optional SendGrid setup and use your existing deploy file when updating the mail settings.
Keep it current
- Update Oncall. Follow the release update steps with your existing deploy file.
- Change one setting: put the new value in
.env.oncall, then run"$HOME/.local/bin/rer" deploy --set-secret NAME --env-file .env.oncallwith the setting's name. - Keep the
.rerfolder. It records what rer deploy created on your account, so later deploys update the same Oncall. Deploy from the same folder each time. - Take it down:
"$HOME/.local/bin/rer" deploy --remove --yes --env-file .env.oncalldeletes the Worker and everything rer created for it, with its data, and checks that none of it remains. Save what you need first.