Phase 9, part 1: editions and their settings
SUPERMARKET_MODE picks local (the default), server or multi. internal/config reads and checks every setting the editions need (database, secret key, storage, the app's own mail, an https address), reporting all problems at once. supermarket config prints them without passwords; supermarket secret-key makes a key. Settings -> About shows the edition. Server and multi-tenant are checked but refuse to start until they're built. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -786,3 +786,17 @@ Throughout, also notice:
|
||||
without losing data.
|
||||
- [x] Backups hold no keys: open one with `sqlite3` and look for a token
|
||||
you've saved (e.g. `.dump` and search); it isn't there.
|
||||
|
||||
## 13. Editions (Phase 9)
|
||||
|
||||
- [ ] Settings → About says **Local edition**, with the version, the
|
||||
database schema, and the database, files and secrets in
|
||||
`~/.local/share/supermarket`.
|
||||
- [ ] `supermarket config` prints the same, and "The settings are fine."
|
||||
- [ ] `docker exec supermarket supermarket secret-key` prints a new
|
||||
64-digit key each time.
|
||||
- [ ] Started with `SUPERMARKET_MODE=server` and nothing else, Supermarket
|
||||
doesn't start: its log names each missing setting (database, secret
|
||||
key, mail, an https:// address). With them all set, it says the
|
||||
server edition isn't built yet. `supermarket config` never shows a
|
||||
password or the key.
|
||||
|
||||
Reference in New Issue
Block a user