I'm using the node server version of TW5
As an experiment I thought I could just drop new .tid files into the tiddlers sub-directory but the system does not seem to find these files.
1) I made a tiddler called Hello
This gets saved in the tiddlers directory in a file Hello.tid
2) I copied this to a file Hello1.tid and edited the title to Hello1
So now I have two files Hello.tid and Hello1.tid in the tiddlers sub directory
3) reloaded the top page from 127.0.0.1:8080 In the More/All tab the tiddler Hello1.tid is missing
So how does the node version of TW5 know which tiddlers get in the all list? and why does Hello1.tid not
appear in this list - is node.js storing a list of all tiddlers somewhere??
/Joe
my last guess: the node process should be restarted
Yes - silly me - I should have thought of that.I guess the node server assumes that nobody else will muck around with thetiddlers sub directory while it is running - a restart did the job.
Thank you very much/Joe
I like using pm2 for that (npm -g install pm2 or how you do it on your machine)
pm2 gracefulReload yourprocess is very handy
--
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 tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@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/e9c1dbae-0bb2-4f5a-821b-c7096a4f3bfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi JoeYes - silly me - I should have thought of that.I guess the node server assumes that nobody else will muck around with thetiddlers sub directory while it is running - a restart did the job.The original plan was indeed to support external modifications to the file system representation of the tiddler store. But back in the early days (2011 or 2012) Node.js didn’t have good cross platform support for watching the file system for changes and so I abandoned that approach. It’s something I’d like to revisit.The workaround is to use the HTTP API, which means working in JSON.