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 |
| 0006 | add item infrastructure |
| 0007 | add item priority |
| 0008 | add edit auth |
| 0009 | add checklist and documents |
| 0010 | add document uploads |
| 0011 | add checklist due date |
| 0012 | add project planning fields |
| 0013 | add document notes |
| 0014 | allow note document kind |
| 0015 | add assignee and subtasks |
| 0016 | add on hold dependency attachments comments |
| 0017 | upgrade task attachments to documents |
| 0018 | import erp hierarchy |
| 0020 | add short display names |
| 0021 | import industry app gaps |
| 0022 | add industry app profiles |
Check that it is live
Terminal
curl https://apps.appneurox.com/healthIt answers {"status":"ok"} when the Worker and its database are up.