Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference from tw5 fileserver? #100

Open
phlummox opened this issue Aug 13, 2020 · 2 comments
Open

Difference from tw5 fileserver? #100

phlummox opened this issue Aug 13, 2020 · 2 comments

Comments

@phlummox
Copy link

phlummox commented Aug 13, 2020

Hi,

I'm just getting familiar with Tiddlywiki5, so please forgive me if this is obvious to more experienced users. I see from the tw5 documentation that it actually includes a static file server - so, in what ways is TiddlyServer different from the normal tw5 node client/server setup?

e.g. The README says a benefit of Tiddlyserver is it "Allows you to access your wikis from any computer on the network" - but can't I do that with tw5 anyway? I run "--listen" on one of my PCs (or some web app platform like Google App Engine), and it's accessible from any other.

As I say, I'm still getting familiar with what tw5 can do, so perhaps the answer is obvious to others. But it might be worth addressing in the README for other newcomers, so they know what TiddlyServer offers in comparison to normal TiddlyWiki5.

@phlummox
Copy link
Author

Just adding: it might also be useful to say how compatible TiddlyServer is with TiddlyWiki5. e.g. can wiki instances easily be swapped from one to the other? I'm assuming so, but the README doesn't say, and doesn't give instructions on transferring a wiki from tw5 to TiddlyServer.

@Arlen22
Copy link
Owner

Arlen22 commented Dec 5, 2020

Yes, wiki instances are intentionally 100% compatible for most standard setups. There are "mods" for TW5 which are incompatible because the make significant changes to the server component, but most normal data folders and normal plugins are 100% compatible. You definitely should not be running a datafolder in both at once because that is the same as running two instances of TiddlyWiki on the same data folder -- they would overwrite each others changes.

The main reason I made TiddlyServer was so I could have multiple data folder wikis without running multiple instances and having to deal with multiple ports. It just loads up a TiddlyWiki server instance for each data folder and distributes the requests to them. However, it does this within a single process, so rather than proxying requests, it actually hands them off within the Javascript environment, which is much less complicated than proxying multiple ports.

So yeah, TiddlyServer is actually multiple TiddlyWiki instances running in the same process and sharing the same listeners. There's quite a bit of code which I wrote myself to imitate a static server instance for serving single file wikis and other files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants