Skip to content

Adding a new lexicon (2024)

César Del Solar edited this page Nov 30, 2024 · 4 revisions
  • kubectl cp the .kwg and .db files into the word_db_server pod, under the /data/lexica/gaddag and /data/lexica/db dirs, respectively (this will copy it to the shared volume)
  • kubectl cp the letterdistribution into the word_db_server pod, under /data/letterdistributions, if this lexicon does not have a letter distribution already there
  • see PR for adding NWL23 to see what else to change (https://github.com/domino14/Webolith/pull/429)
  • run ./manage.py loaddata test/lexica.yaml, ./manage.py migrate_default_lexica and ./manage.py migrate_list_lexica management scripts; run these, as well as the ./manage.py genNamedLists management script.
    • kubectl exec -it po <webolith-pod> (after deploying)
    • then ./manage.py loaddata ... and so on
  • run WordVault migrate script (see word_db_server/scripts/migrations/migrate_wordvault_lexicon)
Clone this wiki locally