Will Tiddlywiki5 have the ability to use one server instance for multiple wikis?

300 views
Skip to first unread message

leeand00

unread,
Jul 6, 2012, 2:49:41 PM7/6/12
to tiddl...@googlegroups.com
Presently it is possible to map a single Tiddlywiki5 server instance to an existing directory in Apache2:
http://stackoverflow.com/questions/11354966/adding-a-node-js-applications-as-an-apache-alias/11367943#11367943 

But this requires that for each wiki one wishes to run, it be run off of a separate server instance.

Will it be possible to run multiple TiddlyWiki5's off of a single TiddlyWiki5 server instance?

Thank you, 
    Andrew J. Leer

Jeremy Ruston

unread,
Jul 6, 2012, 5:08:07 PM7/6/12
to tiddl...@googlegroups.com
The way things are at the moment, TW5 under node.js only supports a single wiki at a time. You could run multiple instances, each pointing at a different wiki directory, but they would have to listen on separate ports without some additional configuration.

At this point, TW5 isn't intended to be a real, solid, multi-user HTTP server because that stuff is incredibly hard to get right - and of course we've already got TiddlyWeb, which benefits from 3 years of use in the field.

Instead, the HTTP support is designed to support two primary scenarios:

* running an instance of TW5 on your own PC/Mac/Linux fielding requests from a local browser. This gets around the issues with saving changes when running the single file version on modern browsers, and makes it easier to do things like offer storage of individual tiddlers in separate files, improve drag-and-drop binary file support, and so on. I'm hoping that we'll be able to offer a simple GUI wrapper for the node.js version which will make it a one click install to get up and running

* running a private instance of TW5 in the cloud. It should be possible to use something like CloudSmith Stack Hammer to offer a one-click install to, say, Amazon's EC2 servers. The idea would be to use the host security features to limit access to the instance, and then use TW5 batch publishing facilities to maintain a static copy of the site on Amazon's S3 static web service

Returning to your original question, I do therefore think that TW5 will need support for multiple wikis at once, to allow for flexible implementation of those two scenarios, but I haven't given it much thought. What sort of scenarios did you have in mind?

Best wishes

Jeremy





--
Jeremy Ruston

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To view this discussion on the web visit https://groups.google.com/d/msg/tiddlywiki/-/0knQd9NjhqkJ.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

Marc J. Cawood

unread,
Oct 21, 2012, 2:53:39 PM10/21/12
to tiddl...@googlegroups.com
On Friday, July 6, 2012 11:08:07 PM UTC+2, Jeremy Ruston wrote:
The way things are at the moment, TW5 under node.js only supports a single wiki at a time. You could run multiple instances, each pointing at a different wiki directory, but they would have to listen on separate ports without some additional configuration.

I noticed this problem in general with node.js and am working on a node.js server which serves, dynamically, any .js files in the file system. Perhaps this kind of approach (dynamically loading and parsing .js files for a response) is a way forward in making a TW5 server server multiple TWs?

Jeremy Ruston

unread,
Oct 24, 2012, 11:00:27 AM10/24/12
to tiddl...@googlegroups.com
My comment was just referring to the current status of the code: the ability to work with multiple wikis from a single instance will be added in due course.

Many thanks,

Jeremy
 
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To view this discussion on the web visit https://groups.google.com/d/msg/tiddlywiki/-/iFJWElGEg4kJ.

To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Reply all
Reply to author
Forward
0 new messages