Skip to content

How to Upgrade

Rahil Pirani edited this page May 27, 2026 · 3 revisions

How to Upgrade

Upgrading is just pulling the latest code and redeploying. No database migrations, no new environment variables needed (unless the release notes say otherwise).


Which setup do you have?

Not sure? Here's how to tell:

  • One-click deploy -- You clicked a "Deploy to Cloudflare" button in the README to get started
  • Manual deploy -- You cloned or forked the repo yourself and ran commands in a terminal

If you used the one-click "Deploy to Cloudflare" button

When you clicked that button, Cloudflare created a copy of the repo in your own GitHub account and set up automatic deployments. Any time you push to your repo, it redeploys automatically -- no terminal needed.

Step 1: Go to your repo on GitHub

It will be at github.com/YOUR-USERNAME/second-brain-cloudflare (whatever name you gave it during setup).

Step 2: Sync with the latest version

  1. On your repo's main page, look for the "Sync fork" button (it appears when your copy is behind the original)
  2. Click it, then click "Update branch"

That's it. Cloudflare detects the new commits and redeploys your Worker automatically within a minute or two.

Step 3: Verify the deployment

  1. Go to dash.cloudflare.com
  2. Click Workers & Pages in the left sidebar
  3. Click on your Worker
  4. Check the Deployments tab -- you should see a new deployment at the top with a recent timestamp

If the deployment shows an error, check the build logs on that same page for details.


If you used the manual deploy (fork + terminal)

Step 1: Pull the latest changes

Open your terminal in your project folder and run:

git pull upstream main

If you haven't set up the upstream remote yet, run this first:

git remote add upstream https://github.com/rahilp/second-brain-cloudflare.git

Then retry the git pull command above.

Step 2: Install dependencies

npm install

Step 3: Redeploy

npx wrangler deploy

Step 4: Verify

Open your web UI or send a test recall from Claude. If it responds normally, you're good.


Something went wrong?

Open an issue at github.com/rahilp/second-brain-cloudflare/issues and include:

  • Which upgrade method you used
  • The error message you saw
  • Which version you were on and which you upgraded to

Clone this wiki locally