Oncall

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.

Walk me through it

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

Request access

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.

Request access

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

  1. 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.dev subdomain, for example yourname. Oncall will answer at:

    https://oncall-production.yourname.workers.dev

    Without it, rer deploy stops with workers-subdomain-missing.

  2. Find your account ID and make an API token

    1. In Workers & Pages, copy your Account ID.
    2. Open API Tokens (My Profile → API Tokens), choose Create Token, then Create Custom Token.
    3. Name it Oncall deploy and add these account permissions: Workers Scripts: Edit and D1: Edit. Under Account Resources, choose your account. No zone permission is needed.
    4. 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.

  3. Write the deploy file

    In your hosting checkout, create .env.oncall with the lines below. Replace the two Cloudflare placeholders and keep MAIL_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=none

    Make it readable only by you; rer deploy refuses it otherwise. Never add it to a commit.

    chmod 600 .env.oncall
  4. Deploy

    If a server is running in this checkout, stop it with "$HOME/.local/bin/rer" dev --stop or "$HOME/.local/bin/rer" preview --stop.

    If your shell already has Cloudflare credentials, run unset CLOUDFLARE_ACCOUNT_ID CLOUDFLARE_API_TOKEN before using the private file.

    "$HOME/.local/bin/rer" deploy --env-file .env.oncall --dry-run
    "$HOME/.local/bin/rer" deploy --env-file .env.oncall

    The 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