I'm running TW5 in Node.js on a centralized server.

My goal was to find a way to have a read only version and a editable 
version. I must have searched for days trying to figure this out...

In the end I created two tiddlywiki core folders with the difference being 
the read only one has a sync filter of -[is[tiddler]]

I can then start one version on one port from one folder and another on a 
different port, different password from the other folder, but both of them 
link to the same wiki.

So example (and I'm using windows...):

Folder one is 
c:\users\<username>\appdata\roaming\npm\node-modules\tiddlywiki and there I 
run:
node tiddlywiki "<path to wiki>" --server 8081 $:/core/save all text/plain 
text/html <user> <password> <listening IP>

Folder two (with the change to core\wiki\config\syncfilter.tid) 
is C:\Users\<username>\AppData\Roaming\npm\node_modules\tiddlywikiRO and to 
run:

node tiddlywiki "<path to wiki>" --server 8080 $:/core/save all text/plain 
text/html "" "" <listening IP>

Works great! just don't override the syncfilter in your wiki.





-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/3ac76e8c-10ed-48cc-aff1-8fb2c5e36ff7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to