Notes on v6+ deployment/migration, aiming for a pyinfra deployment #229

Open
opened 2026-06-25 07:18:55 +00:00 by mih · 0 comments
Owner

We need a git identity set for the audit backend (otherwise the startup will crash, and leave a corrupted empty Git repo behind that prevents further startups, and needs to be "fixes" via rm -rf __dump_things__ in the store.:

git config --global user.name "Psychoinformatics Pool Service"
git config --global user.email "pool@loki.psychoinformatics.de"

A migration needs an admin token. This can be supplied via dump-things-service --admin-token-hash. Such a provisioning is NOT persisted in the config, ie. must remain part of the startup command.

A config snippet to be used with dump-things-upload-config would be

version: 2
type: collections

collections: {}

tokens: {}

admin_tokens:
  mih-token:
    representation: 9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0

Calling dump-things-upload-config more than once is incremental, ie. amends the configuration.

We need a git identity set for the audit backend (otherwise the startup will crash, and leave a corrupted empty Git repo behind that prevents further startups, and needs to be "fixes" via `rm -rf __dump_things__` in the store.: ``` git config --global user.name "Psychoinformatics Pool Service" git config --global user.email "pool@loki.psychoinformatics.de" ``` A migration needs an admin token. This can be supplied via `dump-things-service --admin-token-hash`. Such a provisioning is NOT persisted in the config, ie. must remain part of the startup command. A config snippet to be used with `dump-things-upload-config` would be ```yaml version: 2 type: collections collections: {} tokens: {} admin_tokens: mih-token: representation: 9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0 ``` Calling `dump-things-upload-config` more than once is incremental, ie. amends the configuration.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
orinoco/dump-things-service#229
No description provided.