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 deploySet the secrets once (they stay across deploys):
Terminal
npx wrangler secret put EDIT_PASSCODEDatabase migrations
Applied in order from migrations/:
| # | Migration |
|---|---|
| 0001 | create catalog items |
| 0002 | replace product catalog |
| 0003 | add domain product brands |
| 0004 | add edit auth rate limit |
| 0005 | add edit sessions |
| 0006 | add item infrastructure |
| 0007 | add item priority |
| 0008 | add priority products |
| 0009 | add featured product domains |
| 0010 | rename saylogent to salogent |
| 0011 | fix salogent product |
| 0012 | replace qrcode with qrworldx |
| 0013 | rename qrworldx to qrxworld |
| 0014 | add checklist and documents |
| 0015 | add document uploads |
| 0016 | add checklist due date |
| 0017 | add project planning fields |
| 0018 | add document notes |
| 0019 | allow note document kind |
| 0020 | add assignee and subtasks |
| 0021 | add on hold dependency attachments comments |
| 0022 | upgrade task attachments to documents |
| 0023 | keep selected products |
Check that it is live
Terminal
curl https://foundry.appneurox.com/healthIt answers {"status":"ok"} when the Worker and its database are up.