Tiddlyserver portable install

164 views
Skip to first unread message

Rob Jopling

unread,
Aug 13, 2020, 12:07:53 PM8/13/20
to TiddlyWiki
Apologies if this has been covered in previous posts. I have tried to find the answers.

I am trying to create a portable install of Tiddlyserver that I can use on my Android tablet.

I have followed Arlen's instructions and have a created a portable install in a folder called Tiddlyserver on my Windows 10 pc. I have used the settings.json template that has been suggested and placed it in the Tiddlyserver folder. I have also created folders within the Tiddlyserver folder called  myfolder, workstuff, user and projects_group and have placed a test wiki in myfolder. After running the batch file I can access Tiddlyserver in Chrome at 127.0.0.1:8080 and I can see the folder tree. However, when I try to open any of the folders I get an HTTP ERROR 404.

Can anyone advise what I need to do to access the wiki? Have I put the wiki in the correct place?

Any suggesting about porting this to my Andoid tablet?

Many thanks in anticipation.

Scott Kingery

unread,
Aug 14, 2020, 7:32:08 PM8/14/20
to TiddlyWiki
Rob,
Probably should make sure it works on Win10 first. I'm no expert but can you post your settings.json? The wiki files and folders can be anywhere as long as you get the "tree" syntax right in the settings.json.

Scott

Rob Jopling

unread,
Aug 15, 2020, 11:15:14 AM8/15/20
to TiddlyWiki
Scott

Thank you for getting back to me.

The settings.json file has the following content but only because I copies it off Arlen's instructions. However, I have no idea why the 'tree' is as it is or how I should restructure it to suit my needs.


{
 
//The JSON5 parser allows comments!
 
//All relative paths are relative to this file.
 
//The user directory prefix ~ is allowed.


 
//remove one of these
   
 
"tree": { //this tree is going to mount a group containing folders and another group
   
"myfolder": "../personal",
   
"workstuff": "../work",
   
"user": "~/Desktop/random",
   
"projects_group": {
     
"tiddlyserver": "~/Desktop/Github/TiddlyServer",
     
"material-theme": "~/Dropbox/Material Theme"
   
}
 
},


 
"bindInfo": {
   
// V V V V Uncomment one of the following V V V V


   
//bind to localhost only (you can specify any other ip address in this array, and it will bind to all available addresses)
   
"bindAddress": ["127.0.0.1"],


   
//bind to 0.0.0.0
   
// "bindWildcard": true


   
//workaround for android devices (bind to all available private ip addresses on startup)
   
// "bindWildcard": false, "bindAddress": ["192.168.0.0/16", "10.0.0.0/8", "172.31.0.0/16"], "filterBindAddress": true,
 
},
 
"putsaver": {
   
//single file wikis will backup to this directory on every save
   
"backupFolder": "../backups" // comment out or set to "" to disable backups
 
},
 
"$schema": "./settings-2-2.schema.json"
}

Since making my original post I have created folders called personal and work one levl above the Tiddlyserver folder and in each of them I have created a mydatafolder and in that I have put a wiki.

IT ALL WORKS! on Windows 10. But as i said above I do not know why it is working!

I will now see if it works on my android device.

Rob





Rob

Robert Jopling

unread,
Aug 31, 2020, 5:26:01 PM8/31/20
to tiddl...@googlegroups.com
I now have a portable version of Tiddlyserver working on my Win10 pc, although it is not truly portable.

Arlen's instructions say: "You can also copy the Node executable into the folder for a truly portable install."

I am not sure what is meant by "the Node executable". I have visited the Node.js download site but do not know which package to download, bearing in mind I ultimately want to run this on an Android tablet using Dory.

Also when it says "into the folder" which folder does this mean?

Any help would be appreciated.

Rob

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4b7c2485-fc12-41e4-86b7-b84255ff53cco%40googlegroups.com.

Mark S.

unread,
Aug 31, 2020, 6:14:34 PM8/31/20
to TiddlyWiki
When you download and/or extract the node package (I'm pretty sure it's unzippable), there is a file (node.exe, I think) that does the heavy lifting. You can copy it into the same directory as your tiddly server files so that you don't need to install node.js on some other PC you might visit. So that makes it more portable. 

However, PC executables won't run on Android.

For Android, you need another approach. Typically you would install termux on android, and then from within android install node.js. Then I think you can install and run tiddlyserver files. You might need to understand unix pathing.

I use this approach on Android 5. But it works with the older version of Tiddlyserver. The newer version of ts needs the newer version of node.js, and I'm not sure if that happens under Termux. I guess you'll find out ;-)

Robert Jopling

unread,
Sep 1, 2020, 2:27:14 AM9/1/20
to tiddl...@googlegroups.com
Thanks mark

That is helpful. Will try out your suggestions. 

Rob

--


You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.


To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.


Reply all
Reply to author
Forward
0 new messages