Stack POL data in MySQL (Marty 2026-11-16: payout totals wiped on every deploy)
The indexer snapshot (was /tmp/stack-index.json) and the chatbot KB (was memory) are now MySQL documents via docstore.js (DOCSTORE_URL, Coolify stackpol-mysql), loaded before the server listens so a deploy shows the last totals at once. Snapshot split into stack-index.json + stack-index-at.json so a push with no new payouts rewrites only the tiny doc (docstore skips unchanged bodies). Ingest API unchanged. Tested on core: restart keeps totals, /programs, /earn, member pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
{ "name": "stackpol", "version": "1.0.0", "private": true, "main": "server.js", "scripts": { "start": "node server.js" }, "dependencies": { "qrcode": "1.5.4" } }
|
||||
{"name":"stackpol","version":"1.0.0","private":true,"main":"server.js","scripts":{"start":"node server.js"},"dependencies":{"mysql2":"3.24.6","qrcode":"1.5.4"}}
|
||||
Reference in New Issue
Block a user