Operations

Deploy

Migrations, secrets and going live.

Deploy from your machine

Important

The wrangler login sees several Cloudflare accounts. Set CLOUDFLARE_ACCOUNT_ID to the APPNEURAL account in your shell first, or Wrangler stops to ask.

Terminal
npm install
npm run db:migrate:remote
npm run deploy

Set the secrets once (they stay across deploys):

Terminal
npx wrangler secret put EDIT_PASSCODE

Database migrations

Applied in order from migrations/:

# Migration
0001 create catalog items
0002 add workspace tables
0003 seed catalog items
0004 add domain subscriptions
0005 register portfolio websites
0006 register salogent

Check that it is live

Terminal
curl https://subscribers.appneural.com/health

It answers {"status":"ok"} when the Worker and its database are up.

Last updated 2 November 2026