When twinstance is used to create a new tiddlywebwiki instance the newly created instance will default to using the default text
store. If this is not desired there are two options:
- Create the instance as normal, then migrate it to the new store with tiddlywebplugins.migrate.
- Follow the instructions below.
The goal here is to create the instance using the right store in the first place and then update the default tiddlywebconfig.py with the right information. The following steps will do that, using tiddlywebplugins.gitstore:
- Make sure you have the necessary modules already installed (in this case that's tiddlywebwiki and tiddlywebplugins.gitstore).
cd
into the directory into which you plan to create your instance.-
Create a
tiddlywebconfig.py
with the following contents:config = { 'server_store': ['tiddlywebplugins.gitstore', {'store_root': 'gitstore'}] }
-
Run
twinstance <your instance name>
. cd <your instance name>
.- An
ls
will confirm the existence of agitstore
directory instead of the usualstore
. -
Update
config
in the instancetiddlywebconfig.py
to add aserver_store
entry forgitstore
:'server_store': ['tiddlywebplugins.gitstore', {'store_root': 'gitstore'}]
-
Start up the server and confirm the right stuff is there.